What does docker ps -aq mean

 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 ncontainers (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) 

 

 

Docker command -filter format

https://www.jianshu.com/p/3a69fe0a9c41

Guess you like

Origin blog.csdn.net/u013288190/article/details/112408615