List the id of all containers
docker ps -aq
Options
name | default | description |
---|---|---|
--all, -a |
List all containers, display running containers by default | |
--filter, -f |
Filter the displayed content based on conditions | |
--format |
Display container information through templates | |
--last, -n |
-1 |
Display the recently created n containers (including the status of all containers) |
--latest, -l |
Show recently created containers (including all container status) | |
--no-trunc |
Do not cut output | |
--quiet, -q |
'Quiet mode', only the container ID is displayed | |
--size, -s |
Display the total file size of the container |
Forcibly delete all mirrors
docker rm -f $(docker ps -aq)