https://github.com/portainer/portainer/issues/497
上記と同じ状況でしょうか。
リポジトリが同じで、タグが異なり、イメージIDが同じ場合に出力されるエラー
手順としては以下の通り
bash
1$ docker images python
2REPOSITORY TAG IMAGE ID CREATED SIZE
3python 3 ac069ebfe1e1 8 days ago 927MB
4python latest 825141134528 6 months ago 923MB
5
上記の状況で、以下のコマンドを叩くことで、同じ条件を作ることができます。
bash
1$ docker tag python python:test
2$ docker tag python python:test2
3
4$ docker images python
5REPOSITORY TAG IMAGE ID CREATED SIZE
6python 3 ac069ebfe1e1 8 days ago 927MB
7python latest 825141134528 6 months ago 923MB
8python test 825141134528 6 months ago 923MB
9python test2 825141134528 6 months ago 923MB
10
11$ docker rmi 825141134528
12Error response from daemon: conflict: unable to delete 825141134528 (must be forced) - image is referenced in multiple repositories
13
すでに上記URLにてどうすれば良いか記載がありますが、「Portainer probably deletes by Image ID, but this fails for multiple tags. Solution would be to delete by image:tag pair.」とのこと。
bash
1
2$ docker rmi python:test
3Untagged: python:test
4$ docker rmi python:test2
5Untagged: python:test2
6$ docker images python
7REPOSITORY TAG IMAGE ID CREATED SIZE
8python 3 ac069ebfe1e1 8 days ago 927MB
9python latest 825141134528 6 months ago 923MB
これで元に戻せます。もちろん、既出のように-fでイメージIDを指定することで、python latestにひもづくイメージ全てを削除することもできます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/21 11:19