execute a command within docker swarm service
You can execute commands by filtering container name without needing to pass the entire swarm container hash, just by the service name. Like this: docker exec $(docker ps -q -f name=servicename) ls
You can execute commands by filtering container name without needing to pass the entire swarm container hash, just by the service name. Like this: docker exec $(docker ps -q -f name=servicename) ls
I found one handy solution to the problem. docker service ps –no-trunc {serviceName} which will show errors with downloading images, mounting nfs volumes amongst others. ———————- UPDATE Not all errors can be found in the way described above. Another usefull tool is looking at the docker deamon logs which can be done the follwing way … Read more