Host volume sharing in docker swarm

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

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

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.

“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.

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