未完待续。。。。
从旧版的docker删除后安装了新版的docker-ce
发现之前镜像无法删除,并且重新pull不能覆盖,会出现两个的镜像。
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu 16.04 00fd29ccc6f1 3 weeks ago 111MBubuntu 16.04 00fd29ccc6f1 3 weeks ago 111MB[root@localhost ~]# docker rm 00fdError response from daemon: No such container: 00fd问题
$ docker rmi -f gcc:7.1.0Error response from daemon: No such image: gcc:7.1.0$ docker rmi -f 855a4f4d1cd9Error response from daemon: reference does not exist$ docker rmi -f hello-world:latest Error response from daemon: No such image: hello-world:latest$ docker rmi -f 1815c82652c0Error response from daemon: reference does not exist44
解决
sudo systemctl stop dockersudo rm -rf /var/lib/dockersudo systemctl start docker
但是以前的镜像也会没有啊 需要在研究研究