无法删除 python 和 ubuntu docker 图像

Unable to remove python and ubuntu docker images

我刚开始使用码头工人,所以我在执行 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

它消耗了大量的space,因此我有点担心。

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

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

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