今日のdocker 作業

箱庭もくもく会 #9

https://qiita.com/kaizen_nagoya/items/958d84fcd221894dbfe4

でdockerのエラーで作業が進まなかった。dpclerの掃除を始める。

```macOS:bash
$ docker images
REPOSITORY                   TAG                 IMAGE ID            CREATED             SIZE
kaizenjapan/n4910a           latest              b842aaf677ba        20 minutes ago      2.13GB
kaizenjapan/hako             latest              7e68bbf052ff        22 minutes ago      2.2GB
kaizenjapan/sagyouchu2       latest              1b137b0bb2fc        About an hour ago   247MB
kaizenjapan/sagyouchu        latest              2788873e3785        About an hour ago   247MB
kaizenjapan/cppn5910         latest              6923942cdca7        32 hours ago        2.13GB
gcc                          latest              3f8e26ab44a6        3 weeks ago         1.27GB
toppersjp/hakoniwa-ros2sim   v1.1.2              a09fbde4c0d0        6 weeks ago         1.58GB
kaizenjapan/mochizuki        latest              71709c3a2ec3        8 weeks ago         257MB
kaizenjapan/mochizuki        <none>              0c83400ca632        2 months ago        236MB
<none>                       <none>              c7ea53dc79ce        2 months ago        236MB
kaizenjapan/wi-fi            latest              563d904a7555        4 months ago        439MB
kaizenjapan/ethernet         latest              99cd228aede1        4 months ago        214MB
ubuntu                       latest              54c9d81cbb44        4 months ago        72.8MB
auchida/freebsd              latest              7aac0f9397f9        5 years ago         505MB
$ docker rmi  7aac0f9397f9 
Error response from daemon: conflict: unable to delete 7aac0f9397f9 (must be forced) - image is being used by stopped container b05e02a8d429
...
$ docker rmi  7aac0f9397f9 
Error response from daemon: conflict: unable to delete 7aac0f9397f9 (must be forced) - image is being used by stopped container 78089a76da82
$ docker rm b05e02a8d429
b05e02a8d429
$ docker rm 78089a76da82
78089a76da82
$ docker rmi  7aac0f9397f9 
Untagged: auchida/freebsd:latest
Untagged: auchida/freebsd@sha256:872871fb37a562de93fb0f0f0e55ce322312acfa325293b78ad9372f8c1099f9
Deleted: sha256:7aac0f9397f9e3c2056d25cc3bb3a3f416e3fdaaabc5d57f382e91fb3652ad79
Deleted: sha256:fab07f6856d153b6474acd0614a0fd5c45766c9c83ed78ec2e013183a37ce598
Deleted: sha256:29c6cf6cc511d6563e7ab291852cc9b55c023d09138d78ddb4e29ed6034d9ec6
$ docker rmi   a09fbde4c0d0  
Untagged: toppersjp/hakoniwa-ros2sim:v1.1.2
Untagged: toppersjp/hakoniwa-ros2sim@sha256:aed6e5cdd00de43322a815e4d381f185c32d606bd6638c27f814169884f26f5e
Deleted: sha256:a09fbde4c0d0e46bdeb44c17eacafee943ec57f99365c65824159e15da645761
Deleted: sha256:c6034fa9bb3a8303b248888d513a3c9a0b20ec8eb077e4317611fa7f091e9aff
Deleted: sha256:3ac0bc47232be004728d21cbfe368d5409c277388bffa5ab575bb3acddb00a61
Deleted: sha256:e0cf230624fff9ea86933a30d7bc70e1cb82ff9ea3e950c761ee3db7cad414f0
Deleted: sha256:e7fab7e4cd510279c7cad6b782e3180a2f33a733f4f577b8130a5c36e457afed
Deleted: sha256:f636cc4f0c1c21ed2b58ec116cdd091d1c7490197e49afd155f886d1b231ac22
Deleted: sha256:ec3838938bf1c60462dd92500e447ca04b8db042ca6e039f6c87b55e4f682e50
Deleted: sha256:9cb73f63e4eab14ca2c853e6c539bd1b90c3a0958b33a747fc0033ff2b0be568
Deleted: sha256:b335250d78296cb3a7dc8af9d77e0d1d193346a25f1ad7e5c9b9ced846505dbd
Deleted: sha256:a4f4e9f776a40a5b87d963cea5d9eee984910bc4169c1d8426fcf5bbb1744856
Deleted: sha256:63be5875c7158aa3b35bb799da7b722c78da0f9e957d79e878ec926a6a76cf90
Deleted: sha256:f7f9c39505f26bdf850d92d7d0e1ccb5ff442bd0e111a00f19f310999cc831ee
Deleted: sha256:58748039a892d742c93b80a6b5421820f3cd6d93dbfcbe10bffaf71192437582
Deleted: sha256:6c846559182ad2fc6bef711d6b40019201f598c56d23b02afa136c04ddd808fb
Deleted: sha256:ed50bc2e7636c1137613808caa25fd31e6e14418249d99d6249f12120e8f62e7
Deleted: sha256:2170b685c5fa9da774779bd475761961f678f78294d18ef4eed372bbc08376a2
Deleted: sha256:74c31cc0f45b428e2713ba9a94f30e68675a516b272e30d700226566ec3af1b3
Deleted: sha256:53cfe7265b9b540098de141bbab1802452145caaffd41a2c215d523ed3ab94be
Deleted: sha256:d627c8e1c2e47bfe473306b3c6f14ad0c4a96b0f19477657a8ef4e77972e6217
Deleted: sha256:a8580d40bc13ba8ea0dae023b7af93dd2f0eb2eafcccda54a099c973625849df
Deleted: sha256:c2bfab626548ccb7dffc69fd1c9407816fee0d7b54ccf4e1b73a40bef4b179ea
Deleted: sha256:a3165700a7e66d2c7a498f89b287d61ef1b8cec46a4aa71b44343a6bab56ea09
Deleted: sha256:4a3d18a9e9f259e948abbb64dfb2da0bc8c3f70a71c952fa4dbb318bea7a3b70
Deleted: sha256:29e9e6dc7525f18b89c79448fe475431fe97666a5fb9128527154619c00dbae1
Deleted: sha256:5f21c9120667eb54a10606ee11294140ab657d0d93c48d6fdc549b9020843576
Deleted: sha256:bf8cedc62fb3ef98ad0dff2be56ca451dd3ea69abd0031ad3e0fe5d9f9e4dfff
$ docker rmi 71709c3a2ec3
Untagged: kaizenjapan/mochizuki:latest
Untagged: kaizenjapan/mochizuki@sha256:93a18f820f25cfb5f23daac80e3ff3d578ca7955407d14f45e4c580433b374bb
Deleted: sha256:71709c3a2ec36493f9deb41aa14547fc5b8674fecb9d86e3c8ce54a35ece23d8
Deleted: sha256:69174bad9d4368254259d435169c20e1513364c270ac5f97231d6ea2651b942e
$ docker rmi  0c83400ca632   
Error response from daemon: conflict: unable to delete 0c83400ca632 (must be forced) - image is being used by stopped container a30decbef1f5
$ docker rm a30decbef1f5
a30decbef1f5
$ docker rmi  0c83400ca632   
Untagged: kaizenjapan/mochizuki@sha256:4c5cd3f5aabc64cabb0ee1b66483d94ba6f9676c3b36959b9d364812022b3b95
Deleted: sha256:0c83400ca6327b94fac8f0c64b07d370a2f06ae0c95c333701e11fa137a6e582
OgawaKiyoshi-no-MacBook-Pro:hakoniwa-ros2sim ogawakiyoshi$ docker rmi c7ea53dc79ce 
Deleted: sha256:c7ea53dc79cef42811e1e9723e569511f05cf95ba3db5326613ddc6c8a072885
Deleted: sha256:f0fe6baffd465b20b3c44c948259720f82cdb8886970672e3daaaa23d076fc7f
$ docker rmi  2788873e3785  
Untagged: kaizenjapan/sagyouchu:latest
Deleted: sha256:2788873e37858084c95c692e746beae83a0add9ff17b715381b92a35a650705b
Deleted: sha256:624670514ed5a539a32613d09ebe25147033eb85a745d5b570912c9a56520985
$ docker rmi   1b137b0bb2fc 
Untagged: kaizenjapan/sagyouchu2:latest
Deleted: sha256:1b137b0bb2fc0eb0ae4a9cbb8cf95bd4d36ec7b439789e89f3cd8dc0ce6704a3
Deleted: sha256:0ffb0a01adeecd5cb9231f1c97ff26c9b9c6612d31fcd217df3e89a5b476a7ec
$ docker rmi b842aaf677ba 
Untagged: kaizenjapan/n4910a:latest
Deleted: sha256:b842aaf677ba48c16c2778edbd4d9d827fb17e0c01e976b519c2e7aac43b55b0
Deleted: sha256:e596d842e7c5f3484ece85e56937e25bcf900873a82f1000f649c67f421c7bde
$ docker rmi    7e68bbf052ff  
Untagged: kaizenjapan/hako:latest
Deleted: sha256:7e68bbf052ff5348d0671f918317a56ad4e4f59b93a1c9d33a4a0f56be131ad7
Deleted: sha256:408143a5a2911caa9a70ec4ee6b23c0e1eb67e4358b30d282a4af51290123e1c
$ docker rmi  3f8e26ab44a6 
Error response from daemon: conflict: unable to delete 3f8e26ab44a6 (cannot be forced) - image has dependent child images
OgawaKiyoshi-no-MacBook-Pro:n4910 ogawakiyoshi$ docker rmi  6923942cdca7
Untagged: kaizenjapan/cppn5910:latest
Untagged: kaizenjapan/cppn5910@sha256:5cad4264426d79087dedcbbb7fc5685a3594d830035dd71b26f15570e627d7f1
Deleted: sha256:6923942cdca7a38a7b63e4076d6c1a52d4f1772dbcd945834ef96e57e5665ebf
Deleted: sha256:74c931943e8711710351a241beee693c5649d2c05b649aab235cd90ba650050d
OgawaKiyoshi-no-MacBook-Pro:n4910 ogawakiyoshi$ docker rmi 46be56c3df90
Untagged: kaizenjapan/n4910b:latest
Deleted: sha256:46be56c3df901eb0680ac923a8b73e3773bb2dd8f21ed482fa0bd9a779451bcc
OgawaKiyoshi-no-MacBook-Pro:n4910 ogawakiyoshi$ docker rmi  39b168fa98fa 
Untagged: kaizenjapan/n4910c:latest
Deleted: sha256:39b168fa98fa469aa48c665ff2e999be825863a592a417dbbe53dd9eefd68b4c
Deleted: sha256:389c28d7b334eb3eabdb2f67e3af5637c0df368f7d6bc250b1d556cf1c4afea3
$ docker rm 4bbe4aab0054  
Error response from daemon: You cannot remove a running container 4bbe4aab00549b4ec9ba39f9b86143e8cf3f820737ca472e4aa54314ecd6050e. Stop the container before attempting removal or force remove
$ docker stop 4bbe4aab0054  
4bbe4aab0054
$ docker stop 7e16611529db 
7e16611529db
$ docker rmi  3f8e26ab44a6
Error response from daemon: conflict: unable to delete 3f8e26ab44a6 (must be forced) - image is being used by stopped container 7e16611529db
$ docker rm 7e16611529db
7e16611529db
$ docker rmi  3f8e26ab44a6
Error response from daemon: conflict: unable to delete 3f8e26ab44a6 (must be forced) - image is being used by stopped container 4bbe4aab0054
$ docker rm 4bbe4aab0054
4bbe4aab0054
$ docker rmi  3f8e26ab44a6
Untagged: gcc:latest
Untagged: gcc@sha256:edf8919c3642ea86da60e6cd7e86c0aa84389c6ab78a63fcfa216dccdd723822
Deleted: sha256:3f8e26ab44a6a540013e272b8bdb0d103fcf41ffd8dee0b75b65760db4dcf4ac
Deleted: sha256:b250bdcc175414042024b3e86cdb7bfe5f67ea791509db67eb28cc0865aee715
Deleted: sha256:fe7ec535e1f4a5d1954b70e15f107553869e98fd9a0bfa7dd030b93941926bde
Deleted: sha256:e7798087e9dd703a8181a2aeb2494e62ed2ec8f0d6d730d7c328616c10071202
Deleted: sha256:4af4b467412d98348d1efdeeefde84ed3da2ea180eb2b75277de43a7e5f934d1
Deleted: sha256:3171df72ede24599f91c129a91215dcd7bd60dfb06bc244bb2c96ac69a178dbd
Deleted: sha256:07a39554eef56d61b87b8182887617dabe23fe1dc2e3d262364edc40532bead6
Deleted: sha256:f96a62e97438c84cd89bf41408ab799663f2ed8d02c8aa2700f5ab7b0a13759f
Deleted: sha256:aab98b40d1834bdc05cd619b67a315a87cb769771cb7fa73aaff551b6d5a3afb
Deleted: sha256:e7597c345c2eb11bce09b055d7c167c526077d7c65f69a7f3c6150ffe3f557ea

```