Docker Community Forums

Share and learn in the Docker community.

How can I run a container in swarm mode that must have access to docker socket?


(Javier Ramirez) #1

How can I run a container in swarm mode that must have access to docker socket?, I don’t think that create a mount point when create service is a solution??

Many Thanks,
Javier R.


(Javier Ramirez) #2

I found it :smiley: and I write it here in case that someone else needs it.

–mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock

Many Thanks,
Javier R.