docker rm命令-删除一个或多个容器
rm 删除一个或多个容器
Known Issues (rm)已知的bug
- Issue 197 indicates that
docker killmay leave directories behind and make it difficult to remove the container.
Examples:
删除链接下的容器 /redis.
This will remove the underlying link between /webapp and the /redis containers removing all network communication.
This command will delete all stopped containers. The command docker ps -a -q will return all existing container IDs and pass them to the rm command which will delete them. Any running containers will not be deleted.