Hello everyone!
I have app needed to run docker containers, so I run it with next command:
docker run -p xxxx:xxxx --restart=always --net=xxxx -e HOST=xxxx -v /Applications/Docker.app/Contents/Resources/bin/docker:/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock --name xxxx -d xxxx/xxxx
Expected behavior
I expect binary file inside docker contaner, like for /var/run/docker.sock file:
docker exec NAME ls -l /var/run/docker.sock
srw-rw---- 1 root staff 0 Jun 10 10:54 /var/run/docker.sock
Actual behavior
But it mounts as directory:
docker exec NAME ls -l /usr/bin/docker
total 0
Information
Your unique id is: 4A602CA6-48B2-4221-BFE3-BA72FFB624C6
- the output of:
pinata diagnose -u
on OSXDockerDebugInfo.ps1
using Powershell on Windows
- a reproducible case if this is a bug, Dockerfiles FTW
- page URL if this is a docs issue or the name of a man page
- host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )
Steps to reproduce the behavior
- Install new docker for osx
- run container with mounting of
docker
bin
docker run -p xxxx:xxxx --restart=always --net=xxxx -e HOST=xxxx -v /Applications/Docker.app/Contents/Resources/bin/docker:/usr/bin/docker -v /var/run/docker.sock:/var/run/docker.sock --name xxxx -d xxxx/xxxx
3.then check docker exec NAME ls -l /usr/bin/docker
Thanks!