LoginSignup
11

More than 5 years have passed since last update.

image is being used by running containerで削除できない問題への対処

Posted at

よく忘れるのでメモ&ググりやすくしておく。

エラー内容

docker rmi しようとすると、こういうのが出る

Error response from daemon: conflict: unable to delete ad912aaaca3b (cannot be forced) - image is being used by running container a17e2251b82a

対処方法

以下のどちらかをやる

対処方法1

docker stop コンテナID
docker rmi イメージID

対処方法2

docker rmi -f IMAGE_ID

参考

How to List and Delete Docker Images - Little Big Extra

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
11