Jan 4, 2018

How to stop / remove all docker containers

To stop:
$ docker stop $(docker ps -a -q)
Or $ docker container stop $( docker container ls)
To remove
$ docker rm $(docker ps -a -q)
Or $ docker container rm $(docker container ls -a -q)
You can combine a lot of shell commands in a Docker context.

See also:

You can use docker info to get system-wide information.

Post a Comment

Featured Post


Google Tables helps you search thousands of public Fusion Tables, or millions of public tables from around the web you can import to Fusio...