docker-archive / classicswarm

Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit
Apache License 2.0
5.75k stars 1.08k forks source link

When I run in Docker SWARM then my nodejs apps don't have write access to the disk (volume) - How can I give write access? #2958

Closed sm-a closed 5 years ago

sm-a commented 5 years ago

When I use the "docker stack deploy" command. Then my volumes from the manager and worker don't have write access for my nodejs app. When I run it with docker-compose then it works.

What am I doing wrong? Please, please, please help me.

Here is the complete command: docker stack deploy --compose-file docker-compose.yml smatest

My docker-compose.yml I have attached to this issue. docker-compose.txt

Thank you for your help. Sven

SOLUTION chmod -R a+rw pathToNodeAppFilesFolder

I hope some who has the same problem find here help.

Greetings, Sven