docker移除所有容器
docker rm $(docker ps -a -q)
停止docker容器
//Check if the container is running
docker ps -a
docker container stop {container-id}
删除docker镜像
docker system prune -a
删除docker镜像
docker image rm [image id]
如何停止docker
systemctl stop docker.service
#(OR)
systemctl stop docker
# it will start docker
停止docker镜像
docker stop <image_name>