Docker rm command
docker rm: remove one or many container
grammar
docker rm [OPTIONS] CONTAINER [CONTAINER...]
OPTIONS Description:
-f: Force delete a running container through a SIGKILL signal
-l: remove the network connection between the container rather than the container itself
-v: -v delete the volume associated with the container
Examples
Forced to delete container db01, db02
docker rm -f db01、db02
Remove the container vessel nginx01 db01 connection, connection name db
docker rm -l db
Remove container nginx01, and remove the container mounted data volumes
docker rm -v nginx01