• 解决删除镜像时image is referenced in multiple repositories


    1、查看镜像 docker images

    rt@123:~# docker images
    REPOSITORY                                  TAG                 IMAGE ID            CREATED             SIZE
    192.168.0.1/jii/jenkins                    1.0.1              3391ef1391f6        18 hours ago        206 MB
    192.168.0.1/you/tom                        1.0.8              f8ab12e03d53        22 hours ago        276 MB
    192.168.0.1/you/tom                        1.0.9              f8ab12e03d53        22 hours ago        276 MB

    2、删除镜像,会报错

    rt@123:~# docker rmi f8ab12e03d53

    Error response from daemon: conflict: unable to delete f8ab12e03d53 (must be forced) - image is referenced in multiple repositories

    仔细观察,发现f8ab12e03d53这个镜像id指向了两个repository,因此无法删除

    3、删除时可以用repository和tag的方式来删除

    rt@123:~# docker rmi 192.168.0.1/you/tom:1.0.8
    Untagged:192.168.0.1/you/tom:1.0.8

    4、再次查看镜像,1.0.8的就被删除了

    rt@123:~# docker images
    REPOSITORY                                  TAG                 IMAGE ID            CREATED             SIZE
    192.168.0.1/jii/jenkins                    1.0.1              3391ef1391f6        18 hours ago        206 MB
    192.168.0.1/you/tom 1.0.9 f8ab12e03d53 22 hours ago 276 MB
  • 相关阅读:
    Sass--传多个参数
    Sass--传一个带值的参数
    Sass--传一个不带值的参数
    Sass--调用混合宏
    Sass--混合宏--声明宏
    Sass--伪类嵌套
    Sass-属性嵌套
    Sass--嵌套选择器
    Sass-局部变量和全局变量
    sass--变量
  • 原文地址:https://www.cnblogs.com/cherylgi/p/13498189.html
Copyright © 2020-2023  润新知