1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【docker】〜image has dependent child images 対応〜

Last updated at Posted at 2021-02-07

表題のエラー対応についての備忘録です。
image has dependent child imagesは、親となるイメージを消そうとすると発生するエラーです。

#対応
stack overflowに対応が書いてあったが、「docker rmi RPOSITORY:TAG」で指定すればエラーが起きないとのこと。。

docker rmi <IMAGE ID>
#Error response from daemon: conflict: unable to delete <IMAGE ID> (cannot be forced) - image has dependent child images

docker rmi <RPOSITORY:TAG>
#Untagged: <RPOSITORY:TAG>

#原因

公式ドキュメントにこれについて記述がありました。
https://docs.docker.com/engine/reference/commandline/rmi/

docker rmi <IMAGE ID>
#→image layer自体も消す("delete")

docker rmi <RPOSITORY:TAG>
#→tag(セーブポイント)だけを消して、image layerはそのまま("untaged")
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?