I'm having a problem at the time of doing assembly by binding in Docker through the command:
docker run -p 5000:5000 -v "$(pwd)/path:/path conteiner_name
It turns out that the directory is not mounted on the container.
This is due to the directory returned from $(pwd)
that is from another partition on my host operating system. However, doing the same procedure in the /Users
folder in OSX, it does bind normally. My HD is divided into
SSD1 - Instalado o docker (S.O Host), boot2docker, etc
HDD1 - Contém os arquivos do conteiner, DockerFile, etc.
If I give build to create the container on HDD1 and give run , it will not fetch the directory through $(pwd)/path:/path
, but if I move the Same files for SSD1, it works perfectly.
Is it permission? I have read in the Docker documentation that by default the /Users
, /etc
, /tmp
...