Docker is an open source application container engine, based on the Go language and open source in compliance with the Apache2.0 protocol.

Docker allows developers to package their applications and dependencies into a lightweight, portable container, and then publish it to any popular Linux machine, which can also be virtualized.

Docker rm command syntax

docker rm: delete one or more containers

docker rm [OPTIONS] CONTAINER [CONTAINER...]

Docker rm command example

Force delete containers db01 and db02

docker rm -f db01 db02

Remove the connection of container nginx01 to container db01, Connection name db

docker rm -l db

Delete container nginx01 and delete the data volume mounted by the container

< pre class="brush:php;toolbar:false">docker rm -v nginx01