How to delete a container in docker
Introduction
In docker, you can quickly delete one or more containers with the rm
command
Command Line
delete mysql
container
docker rm mysql
Parameter
parameter | Introduction |
---|---|
rm | Remove one or more containers. |
operation result
mysql
More information
You can also delete by container id
Notice
A running container cannot be deleted directly, you need to suspend the container before deleting