Docker Community Forums

Share and learn in the Docker community.

Host volume sharing in docker swarm

(Srinivasv) #1

docker service create
–mode global
–mount type=bind src=/INPUT,dst=/tmp/inward
–publish mode=host,target=2057,published=2058
–name inward

while creating above mentioned service, replica is not creating in docker swarm.
host path is available with all permission.

we are getting following error in docker logs:
msg=“fatal task error” error=“invalid mount config for type “bind”: bind source path does not exist” module="node/agent/taskmanag

Thank you and appreciate your future help

(Jasonmevans) #2

Were you able to resolve this issue? I am going through the docker tutorial, and am having the same problem getting the Redis service started. It seems like it should just work based on the provided tutorial docs, so there is probably a deeper issue.

(Junius) #3

“bind source path does not exist” would mean the source path, /INPUT, does not exist.

The service mode is global. Please check whether all nodes have /INPUT directory.

(Junius) #4

The docker tutorial link looks broken. What is the problem to get the Redis service started?