forked from dme26/docker-introduction
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
There were a few point where the Docker commands did not run as expected in Git Bash on Windows 10 Education with Docker Desktop.
Path for mounted volume
I had to add an extra / to escape the path when mounting a volume for docker run:
docker run -v "/${PWD}":/data csv-to-scatter-plot
See https://stackoverflow.com/questions/50608301/docker-mounted-volume-adds-c-to-end-of-windows-path-when-translating-from-linux
Sharing drive to mount volume
I had to share the C drive in the Docker Desktop settings before I could mount the volume. This didn't work at first but did after restarting Docker Desktop.
Interactive Ubuntu
The interactive docker run command required an extra prefix, as described in https://willi.am/blog/2016/08/08/docker-for-windows-interactive-sessions-in-mintty-git-bash/
winpty docker run -it ubuntu
Metadata
Metadata
Assignees
Labels
No labels