【问题标题】:Unable to remove python and ubuntu docker images无法删除 python 和 ubuntu docker 图像
【发布时间】:2021-10-23 21:27:26
【问题描述】:

我是使用 dockers 的新手,所以我在执行 docker images 时发现了这些 python 和 ubuntu 图像,我无法使用 docker rmi {image_id} 将其删除。

Error response from daemon: conflict: unable to delete ba6acccedd29 (cannot be forced) - image has dependent child images

它占用了大量空间,因此我有点担心。

REPOSITORY       TAG       IMAGE ID       CREATED        SIZE
docker_jupyter   latest    90708b9040df   28 hours ago   1.94GB
ubuntu           20.04     ba6acccedd29   7 days ago     72.8MB
testapi          latest    82e970c819ff   6 weeks ago    1.33GB
python           3.9       a5210955ee89   6 weeks ago    911MB
python           latest    a5210955ee89   6 weeks ago    911MB

【问题讨论】:

    标签: docker ubuntu docker-image


    【解决方案1】:

    你必须先删除依赖它们的其他图像

    我认为“test_api”和“jupyter”图像依赖于 python,所以你需要先删除它们

    【讨论】:

    • 我明白了,我认为所有这些图像都是独立的,我想我需要更多地了解它们,并且创建“ubuntu”图像的日期不匹配,所以我摸不着头脑。
    猜你喜欢
    • 1970-01-01
    • 2017-07-03
    • 2022-08-03
    • 2020-11-14
    • 1970-01-01
    • 2016-11-02
    • 2022-12-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多