Docker删除镜像和容器查看运行的容器1 docker ps 查看已经退出的容器1 docker ps -a 删除镜像1 docker rmi -f 镜像id 删除容器1 docker rm -f 容器id