Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Docker driver - volume /var/rund/docker.sock:/var/run/docker.sock is not mapped or is removed #1568
Impossible to map volume (host to container) /var/run/docker.sock to /var/run/docker.sock using Docker driver.
Possible root cause for molecule:
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Volume /var/run/docker.sock is mapped to internal /var/run/docker.sock
/var/run/docker.sock is missing inside container
Please give some details of what is actually happening.
How to reproduce:
molecule test -s scenario_name
I suspect the cause is that a tmpfs is mounted on /var/run (or /run if it's symlink) after /var/run/docker.sock is mounted, so the socket file is no longer visible:
As a work around for this issue you can
this will move the /tmp/docker.sock to /var/run/docker.sock where it should be :D