Home > Article > Operation and Maintenance > How to delete docker image
Delete image:
docker rmi IMAGEID
or
docker rmi REPOSITORY:TAG
Extension:
Rename image:
docker tag IMAGEID REPOSITORY:TAG
Container :
Rename:
docker 原容器名 新容器名
Delete:
docker rm CONTAINERID
$ docker ps // 查看所有正在运行容器 $ docker stop containerId // containerId 是容器的ID $ docker ps -a // 查看所有容器 $ docker ps -a -q // 查看所有容器ID $ docker stop $(docker ps -a -q) // stop停止所有容器 $ docker rm $(docker ps -a -q) // remove删除所有容器
Recommended tutorial: docker tutorial
The above is the detailed content of How to delete docker image. For more information, please follow other related articles on the PHP Chinese website!