zoukankan      html  css  js  c++  java
  • 关于CentOS7下docker-ce无法删除镜像的问题

    未完待续。。。。

    从旧版的docker删除后安装了新版的docker-ce

    发现之前镜像无法删除,并且重新pull不能覆盖,会出现两个一模一样的镜像。

    [root@localhost ~]# docker images

    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    ubuntu              16.04               00fd29ccc6f1        3 weeks ago         111MB
    ubuntu              16.04               00fd29ccc6f1        3 weeks ago         111MB
    [root@localhost ~]# docker rm 00fd
    Error response from daemon: No such container: 00fd

    问题

    $ docker rmi -f gcc:7.1.0
    Error response from daemon: No such image: gcc:7.1.0
    
    $ docker rmi -f 855a4f4d1cd9
    Error 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 1815c82652c0
    Error response from daemon: reference does not exist44
    

    解决

    sudo systemctl stop docker
    sudo rm -rf /var/lib/docker
    sudo systemctl start docker
    

     但是以前的镜像也会没有啊  需要在研究研究

  • 相关阅读:
    Linq用法笔记
    关于Json的总结
    关于Json的总结
    Managing uniquely tagged items using the internet
    关于Json的总结
    Net中Session的用法
    Net中Session的用法
    Net中Session的用法
    【基础】Asp.Net操作Cookie总结
    Asp.Net操作Cookie总结
  • 原文地址:https://www.cnblogs.com/charon2/p/10425758.html
Copyright © 2011-2022 走看看