1.docker rmi介绍
docker rmi命令是用来删除本地一个或多个docker镜像
2.docker rmi用法
docker rmi [参数] IMAGE [IMAGE...]
[root@centos79 ~]# docker rmi --help
Usage: docker rmi [OPTIONS] IMAGE [IMAGE...]
Remove one or more images
Aliases:
docker image rm, docker image remove, docker rmi
Options:
-f, --force Force removal of the image
--no-prune Do not delete untagged parents
[root@centos79 ~]#
3.实例
3.1.删除本地docker镜像
docker rmi centos:centos7
[root@centos79 ~]# docker images | grep eeb6
centos centos7 eeb6ee3f44bd 2 years ago 204MB
[root@centos79 ~]# docker rmi centos:centos7
Untagged: centos:centos7
Untagged: centos