Some useful
List stacks or apps
Run the specified Compose file
List running services associated with an app
List tasks associated with an app
Inspect task or container
List container IDs
Tear down an application
Take down a single node swarm from the manager
#docker #cheatsheet #inspect #stack #swarm #service
docker
commands:docker stack ls
List stacks or apps
docker stack deploy -c <composefile> <appname>
Run the specified Compose file
docker service ls
List running services associated with an app
docker service ps <service>
List tasks associated with an app
docker inspect <task or container>
Inspect task or container
docker container ls -q
List container IDs
docker stack rm <appname>
Tear down an application
docker swarm leave --force
Take down a single node swarm from the manager
#docker #cheatsheet #inspect #stack #swarm #service