1
1

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 1 year has passed since last update.

AUTOSAR CountdownAdvent Calendar 2022

Day 8

今日のdocker error :Error response from daemon: conflict: unable to delete。docker(131)

Last updated at Posted at 2021-07-24

Docker上のみでシステムを作るときの構成
https://qiita.com/official-events/339b6440dbd578f4f66f
参加記事を書こうと思った。

あなたもdocker, 私もdocker
https://qiita.com/kaizen_nagoya/items/8f2746f10f30b575d0a8
の記事を書きながらdockerを動かしていて出たエラー

今日のdocker error
:Error response from daemon: conflict: unable to delete

bash
$ docker images
REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
gcc                     latest              011376e71a26        31 hours ago        1.23GB
continuumio/anaconda3   latest              6ed36b0faac9        2 days ago          2.8GB
$ docker rmi 011376e71a26  
Error response from daemon: conflict: unable to delete 011376e71a26 (must be forced) - image is being used by stopped container 261cd42516ec
$ docker stop 261cd42516ec
261cd42516ec
$ docker rmi 011376e71a26  
Error response from daemon: conflict: unable to delete 011376e71a26 (must be forced) - image is being used by stopped container 261cd42516ec
$ docker rmi 6ed36b0faac9  
Error response from daemon: conflict: unable to delete 6ed36b0faac9 (must be forced) - image is being used by stopped container 7186dd476e26
$ docker stop 7186dd476e26
7186dd476e26
$  docker rmi 6ed36b0faac9 
Error response from daemon: conflict: unable to delete 6ed36b0faac9 (must be forced) - image is being used by stopped container 7186dd476e26

stopしてもだめやん。

$ docker rmi 011376e71a26 
Error response from daemon: conflict: unable to delete 011376e71a26 (must be forced) - image is being used by stopped container a504c8bcc64d
$ docker rm a504c8bcc64d
a504c8bcc64d
$ docker rmi 011376e71a26 
Untagged: gcc:latest
Untagged: gcc@sha256:02eaa5ab926f4dd4e4eeaec2ded6d24e3f3921b1797e4d48d0ad95e9b17f7d90
Deleted: sha256:011376e71a26b3a8874f3ffb309f7212d114d0447d5c69656855f56a16bcae17
Deleted: sha256:de64ee76a4ba55f96143a9a10229175e966544baa6ae1e0f6e5c78d86bd042e8
Deleted: sha256:c52bb78ad54ddab63eeea1559702e2af1de994467c2cedb97f24e7bb0b655e7d
Deleted: sha256:48e000b3b610721e6abcc019a1fde8605431a74be4c5286068a04a3a8d5eafe8
Deleted: sha256:1b356f1106bf70a29e9aaa59105c3955f5907126c8a021459fb6fcc12789cc75
Deleted: sha256:33a49c2d719768fe040493534485cabb42cf2fdd5321bfed5bda394c90efe23b
Deleted: sha256:9a069f3097c523b3b7b253c7087555e77564376c0a14e9d6039289158e0862d9
Deleted: sha256:50291727e2e9b1c40759040ab06aceabf5f4ef0e3f67775c232e4fa229a33ddf
Deleted: sha256:878927fd1d2f84dbfd8bd0408eef4e6b746390205fcfc9957ed2b1bcc5ff7bc0
Deleted: sha256:3205b843ce63b93af2cfb71a4217b8a7e0f69d8ae5ba0b19c6f3edf6e8617efc

なるほど、rmを2段階でしないとダメだったんだ。

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?