08 June 2019

Get Started with Docker Part 3

Cheat sheet copied from docker docs
# List stacks or apps
$ docker stack ls

# Run the specified Compose file
$ docker stack deploy -c <composefile> <appname>

# List running services associated with an app
$ docker service ls

# List tasks associated with an app
$ docker service ps <service>

# Inspect task or container
$ docker inspect <task or container>

# List container IDs
$ docker container ls -q

# Tear down an application
$ docker stack rm <appname>

# Take down a single node swarm from the manager
$ docker swarm leave --force

No comments:

Post a Comment