dockerで機械学習(105)環境構築(5)docker関連ファイルの管理

ハードディスクがいっぱいとの警告が出た。
docker imagesをしたら大変なことになっていた。

作業記録をつけながら、docker利用時の
ハードディスクの管理について考察する。
 <この項は書きかけです。順次追記します。>
## わかったこと
複数のコンテナを同時に削除することができる。
複数のイメージを同時に削除することができる。

## わからなかったこと
rmi -fの役割

## よかったこと
全部消せた。ハードディスクの空きが増えた。

## 改めるとよいこと
imageどう管理するかの方針を決める

この項は書きかけです。順次追記します。

## docker images

```
$ docker images
REPOSITORY                                              TAG                 IMAGE ID            CREATED             SIZE
kaizenjapan/r-ml                                        latest              b73cf59d3266        2 days ago          5.23GB
kaizenjapan/anaconda2-willi                             latest              36ebe04e7e44        2 days ago          4.64GB
kaizenjapan/conda3-amueller                             latest              d9f74d8182c1        2 days ago          3.91GB
kaizenjapan/anaconda2-willi                             <none>              65e195f7ae66        3 days ago          4.5GB
kaizenjapan/anaconda-sugomori                           latest              942ba5c9215a        4 days ago          5.66GB
<none>                                                  <none>              cd3ce6c61c89        4 days ago          5.66GB
<none>                                                  <none>              23cc27429c4b        4 days ago          5.66GB
kaizenjapan/anaconda-handson                            latest              4c4291a744d3        4 days ago          5.62GB
kaizenjapan/anaconda-pythonai                           latest              a692f785b041        4 days ago          3.65GB
continuumio/anaconda2                                   latest              6a20d7793247        8 days ago          3.57GB
continuumio/anaconda                                    latest              6a20d7793247        8 days ago          3.57GB
continuumio/anaconda3                                   latest              c357d1cc27c8        8 days ago          3.6GB
kaizenjapan/anaconda-deep-1                             latest              2d26c8621bf9        13 days ago         5.06GB
kaizenjapan/anaconda-keras-ten                          latest              74cc1049f336        2 weeks ago         4.9GB
kaizenjapan/anaconda-deep                               latest              ffb3b615c8b9        2 weeks ago         4.27GB
kaizenjapan/anaconda-keras                              latest              71ea440b7196        2 weeks ago         4.29GB
anaconda-keras                                          latest              71ea440b7196        2 weeks ago         4.29GB
<none>                                                  <none>              05a7a823de44        2 weeks ago         2.9GB
kaizenjapan/docker-ubuntu10-ndev                        latest              74912d30b525        4 weeks ago         497MB
ubuntu                                                  14.04               c32fae490809        4 weeks ago         188MB
kaizenjapan/mrubyc                                      latest              0d4197b2f770        4 weeks ago         1.86GB
mrubyc                                                  latest              0d4197b2f770        4 weeks ago         1.86GB
gcc                                                     latest              d4d2a8e7d887        2 months ago        1.68GB
docker-toppers_cli                                      latest              cb9220175662        2 months ago        599MB
continuumio/anaconda3                                   <none>              a9090db7be5a        4 months ago        3.6GB
php                                                     7.0-apache          7bfc676ce45f        4 months ago        368MB
python                                                  3.6                 efb6baa1169f        6 months ago        691MB
python                                                  2.7                 2863c80c418c        6 months ago        679MB
gcc                                                     <none>              8357b3fcbe41        6 months ago        1.64GB
datascienceworkshops/data-science-at-the-command-line   latest              dfbe88c75dc8        8 months ago        2.27GB
wordpress                                               latest              3f1c75052243        10 months ago       412MB
dockertoppersfmprpi64_fmp                               latest              4f22d9ddb05a        11 months ago       1.23GB
test/llvm                                               latest              8bb5c89fa168        11 months ago       161MB
test/docker-cowsay                                      latest              4a3d9f776670        11 months ago       207MB
test/create_file                                        latest              6d6677f44f0c        11 months ago       122MB
ubuntu                                                  latest              747cb2d60bbe        12 months ago       122MB
ubuntu                                                  xenial              747cb2d60bbe        12 months ago       122MB
redis                                                   latest              1fb7b6c8c0d0        12 months ago       107MB
hello-world                                             latest              05a3bd381fc2        13 months ago       1.84kB
floydhub/dl-docker                                      cpu                 0b9fc622f1b7        2 years ago         2.87GB
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi   cd3ce6c61c89 
Deleted: sha256:cd3ce6c61c89109b16099ddfa9f775b3720c4c55092f233b4473bed643c1ed49
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi 23cc27429c4b 
Deleted: sha256:23cc27429c4b03f23ddda28fd7ebabead515d8eeefd1d679d9b06a9ee4eeda01

$ docker rmi 05a7a823de44    
Error response from daemon: conflict: unable to delete 05a7a823de44 (must be forced) - image is being used by stopped container 9ea054a4485e

$ docker rmi  9ea054a4485e
Error: No such image: 9ea054a4485e
$ docker rmi  a9090db7be5a   
Error response from daemon: conflict: unable to delete a9090db7be5a (cannot be forced) - image has dependent child images
$ docker rmi 8357b3fcbe41  
Error response from daemon: conflict: unable to delete 8357b3fcbe41 (must be forced) - image is being used by stopped container 2bda267ffd0f
$ docker rmi 05a3bd381fc2 
Error response from daemon: conflict: unable to delete 05a3bd381fc2 (must be forced) - image is being used by stopped container 0137e4ebe13d
```
## docker ps -a

```
$ docker ps -a
CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS                       PORTS                                            NAMES
3d38a33f9b63        kaizenjapan/anaconda-keras       "/usr/bin/tini -- /b…"   16 hours ago        Exited (127) 3 minutes ago                                                    quizzical_curie
20be68681746        kaizenjapan/anaconda-deep        "/usr/bin/tini -- /b…"   17 hours ago        Exited (255) 16 hours ago                                                     practical_morse
5e6115003e9f        kaizenjapan/anaconda-keras       "/usr/bin/tini -- /b…"   42 hours ago        Exited (0) 39 hours ago                                                       flamboyant_shockley
70104baf94c5        kaizenjapan/anaconda-keras       "/usr/bin/tini -- /b…"   47 hours ago        Exited (255) 42 hours ago    0.0.0.0:6006->6006/tcp, 0.0.0.0:8888->8888/tcp   musing_lalande
778f01e56c2a        continuumio/anaconda3            "/usr/bin/tini -- /b…"   47 hours ago        Exited (130) 47 hours ago                                                     vibrant_ptolemy
0e39a29ab288        continuumio/anaconda3            "/usr/bin/tini -- /b…"   2 days ago          Exited (255) 47 hours ago                                                     romantic_jones
473fc1bb505d        continuumio/anaconda3            "/usr/bin/tini -- /b…"   2 days ago          Exited (1) 2 days ago                                                         kind_thompson
31962e40c4e8        continuumio/anaconda3            "/usr/bin/tini -- /b…"   2 days ago          Exited (0) 2 days ago                                                         distracted_euclid
61dbe5b74988        continuumio/anaconda3            "/usr/bin/tini -- /b…"   2 days ago          Created                                                                       adoring_tesla
501a83cf645b        kaizenjapan/conda3-amueller      "/usr/bin/tini -- /b…"   2 days ago          Created                                                                       jovial_swirles
040a6abb468b        continuumio/anaconda3            "/usr/bin/tini -- /b…"   2 days ago          Exited (0) 2 days ago                                                         jovial_elbakyan
0e132dd1fc43        continuumio/anaconda             "/usr/bin/tini -- /b…"   2 days ago          Exited (0) 2 days ago                                                         determined_khorana
9f32435de7a9        65e195f7ae66                     "/usr/bin/tini -- /b…"   3 days ago          Exited (0) 2 days ago                                                         stupefied_mestorf
bab8510e7b8e        continuumio/anaconda2            "/usr/bin/tini -- /b…"   3 days ago          Exited (0) 2 days ago                                                         vibrant_meitner
fc6d6bfbba64        continuumio/anaconda3            "/usr/bin/tini -- /b…"   3 days ago          Exited (0) 3 days ago                                                         stoic_colden
420f9be6a3a2        continuumio/anaconda3            "/usr/bin/tini -- /b…"   4 days ago          Exited (255) 3 days ago      0.0.0.0:6666->6666/tcp                           affectionate_wescoff
1a1b9481e2f1        continuumio/anaconda3            "/usr/bin/tini -- /b…"   4 days ago          Created                                                                       pensive_volhard
5d7f67ae9b0a        kaizenjapan/anaconda-handson     "/usr/bin/tini -- /b…"   4 days ago          Exited (255) 3 days ago      0.0.0.0:8888->8888/tcp                           flamboyant_pasteur
5a5136f16eab        continuumio/anaconda3            "/usr/bin/tini -- /b…"   4 days ago          Exited (130) 4 days ago                                                       nostalgic_yonath
6f4c91ae627f        continuumio/anaconda3            "/usr/bin/tini -- /b…"   4 days ago          Exited (1) 4 days ago                                                         hungry_pare
f2854307a1c3        a9090db7be5a                     "/usr/bin/tini -- /b…"   12 days ago         Exited (1) 11 days ago                                                        stoic_bartik
20e2de620730        a9090db7be5a                     "/usr/bin/tini -- /b…"   12 days ago         Created                                                                       jolly_lalande
08db8164c1b7        a9090db7be5a                     "/usr/bin/tini -- /b…"   12 days ago         Exited (1) 12 days ago                                                        inspiring_fermi
1c17ae592660        a9090db7be5a                     "/usr/bin/tini -- /b…"   12 days ago         Created                                                                       epic_mestorf
eafc28d3ba6a        a9090db7be5a                     "/usr/bin/tini -- /b…"   12 days ago         Exited (0) 12 days ago                                                        lucid_hopper
b28c065c8b45        a9090db7be5a                     "/usr/bin/tini -- /b…"   2 weeks ago         Exited (255) 5 days ago                                                       elegant_gates
7eb2bde4bff1        kaizenjapan/anaconda-keras-ten   "/usr/bin/tini -- /b…"   2 weeks ago         Exited (137) 12 days ago                                                      priceless_vaughan
8a6b7144aa9a        kaizenjapan/anaconda-keras-ten   "/usr/bin/tini -- /b…"   2 weeks ago         Exited (0) 2 weeks ago                                                        peaceful_beaver
96c18ac9c432        kaizenjapan/anaconda-keras-ten   "/usr/bin/tini -- /b…"   2 weeks ago         Created                                                                       elated_brahmagupta
f19e2f06eabb        a9090db7be5a                     "/usr/bin/tini -- /b…"   2 weeks ago         Exited (255) 5 days ago                                                       competent_sinoussi
987be32a0721        kaizenjapan/anaconda-keras       "/usr/bin/tini -- /b…"   2 weeks ago         Exited (0) 2 weeks ago                                                        ecstatic_feynman
b789c278e622        a9090db7be5a                     "/usr/bin/tini -- /b…"   2 weeks ago         Exited (127) 2 weeks ago                                                      peaceful_noyce
d4f213b74bad        a9090db7be5a                     "/usr/bin/tini -- /b…"   2 weeks ago         Created                                                                       objective_lumiere
0da2c87a513f        a9090db7be5a                     "/usr/bin/tini -- /b…"   2 weeks ago         Exited (0) 2 weeks ago                                                        reverent_elbakyan
9ea054a4485e        05a7a823de44                     "/bin/sh -c 'pip --n…"   2 weeks ago         Exited (1) 2 weeks ago                                                        sleepy_banach
3fb5f3a19357        75335c7535fe                     "/bin/sh -c 'apt-get…"   2 weeks ago         Exited (100) 2 weeks ago                                                      elastic_noether
01dc6ad0394a        floydhub/dl-docker:cpu           "bash"                   2 weeks ago         Exited (137) 2 weeks ago                                                      optimistic_raman
ae86153fdf6b        docker-toppers_cli               "/bin/bash"              3 weeks ago         Exited (0) 3 weeks ago                                                        focused_mendeleev
9c9d84edd006        74912d30b525                     "/usr/bin/env bash -…"   4 weeks ago         Exited (0) 4 weeks ago                                                        focused_lamarr
04cbd59912eb        mrubyc:latest                    "/bin/bash"              4 weeks ago         Exited (255) 4 weeks ago                                                      sharp_franklin
a2fba5da822f        gcc                              "bash"                   4 weeks ago         Exited (255) 4 weeks ago                                                      gcc
066f2d0ecfb6        docker-toppers_cli               "/bin/bash"              2 months ago        Exited (255) 5 days ago                                                       docker-toppers_cli_1
fb1123cf9e98        0430aadc23ad                     "/bin/sh -c 'DEBIAN_…"   2 months ago        Exited (100) 2 months ago                                                     epic_kowalevski
6ac4f5ec31d5        7bfc676ce45f                     "docker-php-entrypoi…"   4 months ago        Exited (255) 4 months ago    80/tcp                                           quizzical_ritchie
909d5cc6b3ef        7bfc676ce45f                     "docker-php-entrypoi…"   4 months ago        Exited (255) 4 months ago    80/tcp                                           determined_panini
b7739cc716eb        8357b3fcbe41                     "/bin/bash"              4 months ago        Exited (255) 4 months ago                                                     competent_keller
2ee2f08b0cd6        7bfc676ce45f                     "docker-php-entrypoi…"   4 months ago        Exited (0) 4 months ago                                                       festive_wilson
6837875f6434        747cb2d60bbe                     "/bin/bash"              5 months ago        Exited (255) 5 months ago                                                     jovial_heyrovsky
0137e4ebe13d        05a3bd381fc2                     "/bin/bash"              5 months ago        Created                                                                       quirky_torvalds
a7f0b454d734        747cb2d60bbe                     "/bin/bash"              5 months ago        Exited (100) 5 months ago                                                     infallible_bhabha
2bda267ffd0f        8357b3fcbe41                     "/bin/bash"              5 months ago        Exited (255) 5 months ago                                                     vigilant_colden
324985448ac3        2863c80c418c                     "/bin/bash"              6 months ago        Exited (255) 5 months ago                                                     python27
5559461aa1ab        efb6baa1169f                     "/bin/bash"              6 months ago        Exited (255) 5 months ago                                                     python36
```
## docker rm

```
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rm 5559461aa1ab 324985448ac3 2bda267ffd0f a7f0b454d734  0137e4ebe13d 6837875f6434 2ee2f08b0cd6 
5559461aa1ab
324985448ac3
2bda267ffd0f
a7f0b454d734
0137e4ebe13d
6837875f6434
2ee2f08b0cd6
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rm b7739cc716eb   909d5cc6b3ef 6ac4f5ec31d5 fb1123cf9e98 9c9d84edd006  3fb5f3a19357  9ea054a4485e  
b7739cc716eb
909d5cc6b3ef
6ac4f5ec31d5
fb1123cf9e98
9c9d84edd006
3fb5f3a19357
9ea054a4485e

$ docker rm b28c065c8b45 eafc28d3ba6a 1c17ae592660 08db8164c1b7 20e2de620730 f2854307a1c3 9f32435de7a9
b28c065c8b45
eafc28d3ba6a
1c17ae592660
08db8164c1b7
20e2de620730
f2854307a1c3
9f32435de7a9
$ docker rm 066f2d0ecfb6 a2fba5da822f  ae86153fdf6b 01dc6ad0394a  04cbd59912eb 
066f2d0ecfb6
a2fba5da822f
ae86153fdf6b
01dc6ad0394a
04cbd59912eb
```
## docker images

```
$ docker images
REPOSITORY                                              TAG                 IMAGE ID            CREATED             SIZE
kaizenjapan/r-ml                                        latest              b73cf59d3266        2 days ago          5.23GB
kaizenjapan/anaconda2-willi                             latest              36ebe04e7e44        2 days ago          4.64GB
kaizenjapan/conda3-amueller                             latest              d9f74d8182c1        2 days ago          3.91GB
kaizenjapan/anaconda2-willi                             <none>              65e195f7ae66        3 days ago          4.5GB
kaizenjapan/anaconda-sugomori                           latest              942ba5c9215a        4 days ago          5.66GB
kaizenjapan/anaconda-handson                            latest              4c4291a744d3        4 days ago          5.62GB
kaizenjapan/anaconda-pythonai                           latest              a692f785b041        4 days ago          3.65GB
continuumio/anaconda2                                   latest              6a20d7793247        8 days ago          3.57GB
continuumio/anaconda                                    latest              6a20d7793247        8 days ago          3.57GB
continuumio/anaconda3                                   latest              c357d1cc27c8        8 days ago          3.6GB
kaizenjapan/anaconda-deep-1                             latest              2d26c8621bf9        13 days ago         5.06GB
kaizenjapan/anaconda-keras-ten                          latest              74cc1049f336        2 weeks ago         4.9GB
kaizenjapan/anaconda-deep                               latest              ffb3b615c8b9        2 weeks ago         4.27GB
kaizenjapan/anaconda-keras                              latest              71ea440b7196        2 weeks ago         4.29GB
anaconda-keras                                          latest              71ea440b7196        2 weeks ago         4.29GB
<none>                                                  <none>              05a7a823de44        2 weeks ago         2.9GB
kaizenjapan/docker-ubuntu10-ndev                        latest              74912d30b525        4 weeks ago         497MB
ubuntu                                                  14.04               c32fae490809        4 weeks ago         188MB
mrubyc                                                  latest              0d4197b2f770        4 weeks ago         1.86GB
kaizenjapan/mrubyc                                      latest              0d4197b2f770        4 weeks ago         1.86GB
gcc                                                     latest              d4d2a8e7d887        2 months ago        1.68GB
docker-toppers_cli                                      latest              cb9220175662        2 months ago        599MB
continuumio/anaconda3                                   <none>              a9090db7be5a        4 months ago        3.6GB
php                                                     7.0-apache          7bfc676ce45f        4 months ago        368MB
python                                                  3.6                 efb6baa1169f        6 months ago        691MB
python                                                  2.7                 2863c80c418c        6 months ago        679MB
gcc                                                     <none>              8357b3fcbe41        6 months ago        1.64GB
datascienceworkshops/data-science-at-the-command-line   latest              dfbe88c75dc8        8 months ago        2.27GB
wordpress                                               latest              3f1c75052243        10 months ago       412MB
dockertoppersfmprpi64_fmp                               latest              4f22d9ddb05a        11 months ago       1.23GB
test/llvm                                               latest              8bb5c89fa168        11 months ago       161MB
test/docker-cowsay                                      latest              4a3d9f776670        11 months ago       207MB
test/create_file                                        latest              6d6677f44f0c        11 months ago       122MB
ubuntu                                                  latest              747cb2d60bbe        12 months ago       122MB
ubuntu                                                  xenial              747cb2d60bbe        12 months ago       122MB
redis                                                   latest              1fb7b6c8c0d0        12 months ago       107MB
hello-world                                             latest              05a3bd381fc2        13 months ago       1.84kB
floydhub/dl-docker                                      cpu                 0b9fc622f1b7        2 years ago         2.87GB
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi  05a7a823de44  a9090db7be5a  8357b3fcbe41  05a3bd381fc2  1fb7b6c8c0d0  0b9fc622f1b7 6d6677f44f0c 
Deleted: sha256:05a7a823de445dfbb0f310fdb1d6661bb72ac6acdfb3bda9974ca5f664041cf9
Deleted: sha256:11ca22fae7396f3324db13d60d069d64cc6c9a0bc6bb2def6221ce97f3fb105e
Deleted: sha256:d62d5e3a4d0e2f3819a9a447ea463253c3e7b06bbcdc2f588eab1b2bfbd18de4
Deleted: sha256:b365886a9353fc2952b233b6e0e87cf8b212f978d74a3f4c66b817e279f220b9
Deleted: sha256:5e28e4d1651299f0328ac96bcae3c832cd3ffb9a4583461b243250ce4c005d0b
Deleted: sha256:0da5bc5f419eabd6a639386428cc4b0d010b6d678ceafb4f1e1071ca1a537313
Deleted: sha256:f5a35141741253574558cebb3e10313f2ce581866ee390ab0754f78ccc217628
Deleted: sha256:f6103906e7012ef6a5ae0bedf6ec5902874d6aa80d401d4d883c33475bfbd002
Deleted: sha256:75335c7535fe3c930b3113125d191dd2daf2fec7a7efd88709b531648f6b9d97
Deleted: sha256:b421e96c1e7f08eedf5134a60cb418c407d624a9577f845d298474ca0af7e875
Deleted: sha256:5984507021c7f6cabd1e01205182351d2b9c36b140437a228870adacdd5d53fb
Deleted: sha256:5a372b426033c971c759484fa45d09aefd07a607b92957142590018549e53bbc
Deleted: sha256:c49306dcf0ebc705617d6cba869c83a6926d9ef1206bfc9c830aac2fdb243692
Deleted: sha256:730a98b4c28cc3e1bdac3a463c6fa9d722c02dcf5c1f28d3d0b9216d7cc32412
Deleted: sha256:d6742a752291526611a4193c25af1d4267735e5bbbe61a5bdf38ed3d57cf1481
Deleted: sha256:02333066aff2e725939b7681950ac788d42b99c20b6b2b65d915863ce034af74
Untagged: gcc@sha256:de65296c868fadefa5f0cb7e24d4fc6e5ab919b82396260993f25fc5fc5a5c24
Deleted: sha256:8357b3fcbe4138c0e4c681e5120a695d27a3da3fd037bd55c0911cb53f126259
Deleted: sha256:290fc699a6af26182714e4c2f41359d37bb16633a7d7bcb5beb97af74582e4a1
Deleted: sha256:68a94437be3a3825276c92fa81ce024fe018887e36df898b381fc19747f5bb9d
Deleted: sha256:a839ea53e158b297b87aeb1aae668dddbce3c113ffb455d702a330f7f08b1c09
Deleted: sha256:378016b5f67f215bbf8865252c382bd8f92ecce483ef1121a1d379489503e399
Deleted: sha256:e75d7e0da807a1a82843d4bce2482f83cc746dac542b7ac3febdf59e5db8faa5
Deleted: sha256:06d2bbe7d347d21d0ca60d95dab4d40df0c67471803b769e3cdefb044edd226d
Deleted: sha256:041a932919f2ecd2058e917252203ed497c0281950f0fca415c9efbfe4a1c91f
Deleted: sha256:854435330bfa1024aa7be4d2e41cc9a58c91ea50184c52bf47c3979051c768f5
Deleted: sha256:e1df5dc88d2cc2cd9a1b1680ec3cb92a2dc924a0205125d85da0c61083b4e87d
Untagged: hello-world:latest
Untagged: hello-world@sha256:07d5f7800dfe37b8c2196c7b1c524c33808ce2e0f74e7aa00e603295ca9a0972
Deleted: sha256:05a3bd381fc2470695a35f230afefd7bf978b566253199c4ae5cc96fafa29b37
Deleted: sha256:3a36971a9f14df69f90891bf24dc2b9ed9c2d20959b624eab41bbf126272a023
Untagged: redis:latest
Untagged: redis@sha256:07e7b6cb753f8d06a894e22af30f94e04844461ab6cb002c688841873e5e5116
Deleted: sha256:1fb7b6c8c0d0713640c99dc75f7f39849cb9fc5619c1ba4ff6da286e6af759ee
Deleted: sha256:dcec696fa8eba4d782103ca009390fe9870d97e2d4cb65c9e167981940768423
Deleted: sha256:4f398a56ac3954dd74fff3f99e66ff63e2507b0f66c036b932fdfc40b0b5fbef
Deleted: sha256:e57ca5dbba9da94c45f0fc8dfcdce123ec3b6fe612f12828fc02df8411cca901
Deleted: sha256:5b3c3d58e5f9d9460b356d01329f9016fbb1959bf1522f357fb81a2db362908b
Deleted: sha256:a895b72388eb73dd9fb4406a318ee67fe48c7e70e01190c8f2ac4310dc529245
Deleted: sha256:29d71372a4920ec230739a9e2317e7e9b18644edb10f78cde85df85e6ab85fc2
Untagged: floydhub/dl-docker:cpu
Untagged: floydhub/dl-docker@sha256:377e9443b323ff2346d33b096f3bd4b7ae0a707823dd8430e093cccf59e021e9
Deleted: sha256:0b9fc622f1b7840a160ddb2377fcb085109e26983fe2dcca4ca5d52902f6a65d
Deleted: sha256:6b3852598a2ab7a4c76c844d66faa0f4fe762d3450dd0d980be2056eb5393c98
Deleted: sha256:d8610679824fdf4a32802952a980ae2de60c50ca44e59dcc0661aba167b2ac80
Deleted: sha256:ef9b49d821f7463798d7edc12e5c9601480dd031dbfffbbfd3ccd9d983e8f288
Deleted: sha256:1bcbecb63850424fa1b148ceb2e3080ec79f1f967766afbb24ea3d5552e4c235
Deleted: sha256:0c8bb287e4a544894468a39722c9391fc5472aba729a8a445247b780df7567d8
Deleted: sha256:df5961fbae4d05c8ff9598c8efe865f047e242704834f2b7b5cb61db6dd0b37e
Deleted: sha256:b48f5c0276165e8939e9fcb7c2eafe2c6e7d7910bdc1051af1702fb66addc0aa
Deleted: sha256:42f3fbab8a7f8a912f7f0763ed80cc36c79b47521a8ff1b7dae5362aaf5c3be2
Deleted: sha256:12db94f09e50763062a5f0cff4e6d255e4867308bb235d4a9b6ba3e595200f7a
Deleted: sha256:8d9df44550c462e81df8f1dda0ea18508fd6a492d192118b39ebf36020a67f0e
Deleted: sha256:9d635b088aacc0704674af6d1cd8b1683acc2cd6869139d0be2b08e0da4fb32e
Deleted: sha256:5e19dceb257deb76583fa02e3caedc5553389b7160d0cf0c93e8bad9756c4788
Deleted: sha256:7a4d968f7fb6875b1439827ae573c888acbea1a97337685bded15a0fc7ecfd48
Deleted: sha256:6fda8772e93ead27fdf7bac20763bc5b1240c8e38ccf08ba17d03d582ccb445e
Deleted: sha256:9ed9580044d5173ce3d88756c95b325b8982fe5b54d0d2b7c405cb18168de68d
Deleted: sha256:58400ef4140e7bc80dc62a653066358008a5a4d28ed4ad7219fcab6b1bb5bdb4
Deleted: sha256:8ea3b9ba4dd9d448d1ca3ca7afa8989d033532c11050f5e129d267be8de9c1b4
Deleted: sha256:7db5fb90eb6ffb6b5418f76dde5f685601fad200a8f4698432ebf8ba80757576
Deleted: sha256:19a7e879151723856fb640449481c65c55fc9e186405dd74ae6919f88eccce75
Deleted: sha256:c357a3f74f16f61c2cc78dbb0ae1ff8c8f4fa79be9388db38a87c7d8010b2fe4
Deleted: sha256:a7e1c363defb1f80633f3688e945754fc4c8f1543f07114befb5e0175d569f4c
Untagged: test/create_file:latest
Deleted: sha256:6d6677f44f0c74100df9ff70200577d6b9cc79b9ef6d2f83aa64e873f9e37a6e
Deleted: sha256:79177bb8c009e649e2a91cb90800877722dc11b1c41237b5b8e9a3207675f21a
Error response from daemon: conflict: unable to delete a9090db7be5a (cannot be forced) - image has dependent child images

```
## docker rmi -f 

```
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi -f 6a20d7793247 
Untagged: continuumio/anaconda2:latest
Untagged: continuumio/anaconda2@sha256:0939eb5c7f27e86f84591cd56fa8b89f02fcee52176e5951676c70c3bdbfd3fd
Untagged: continuumio/anaconda:latest
Untagged: continuumio/anaconda@sha256:0939eb5c7f27e86f84591cd56fa8b89f02fcee52176e5951676c70c3bdbfd3fd
Deleted: sha256:6a20d77932473f4e695a222046001dc6e8682abedba3cdef625cf912adac1648
Deleted: sha256:0d8c603d4a1adc688b0405ab4bb1e28326c5892ed73520343578d5ad6995b3e2
Deleted: sha256:88ac2fb1cac15b308f10673371b4ede109a8ddebfee5f8e1807a9cf827f5b01b
Deleted: sha256:c402961a965d128ff41fdcd273695c34c933b7ada0644034ad5a655146a757f4
Deleted: sha256:b28ef0b6fef80faa25436bec0a1375214d9a23a91e9b75975bba3b2889f8504f
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi -f 71ea440b7196        
Untagged: kaizenjapan/anaconda-keras:latest
Untagged: kaizenjapan/anaconda-keras@sha256:90b371d11e9350bf17dea08512c3e3218d9bed5e69022e55f0d0dc1e16e8c5bd
Untagged: anaconda-keras:latest
Deleted: sha256:71ea440b719616a2f0be6ecd4e9728a137ed8d0b7ebbebcda1a2eccc01be7f8f
Deleted: sha256:c99ab1c29b1c9c125328df48220945786a7e3b42647457530acfed1bb512443d
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi -f 0d4197b2f770  
Untagged: kaizenjapan/mrubyc:latest
Untagged: kaizenjapan/mrubyc@sha256:15ee5f97aaad81e7e0650b2f9223e5634bb2c01a70111fea27387a105840047b
Untagged: mrubyc:latest
Deleted: sha256:0d4197b2f7707e7186f1cb25b622d502a99369fe8724ed685c9aad12c3e9d3fa
Deleted: sha256:22fa2a0775cfb3f84210302871935c3bd20040911f78d7e67a2015a901852b53
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi -f     747cb2d60bbe  
Untagged: ubuntu:latest
Untagged: ubuntu:xenial
Untagged: ubuntu@sha256:506e2d5852de1d7c90d538c5332bd3cc33b9cbd26f6ca653875899c505c82687
Deleted: sha256:747cb2d60bbecbda48aff14a8be5c8b913ca69318a6067e57c697f8a78dda06e
Deleted: sha256:ec1fd849ff0a8f0aa2fd1acc29ad5dabbc79b89f63b74a4f54e31a7b0a100aa1
Deleted: sha256:e3f6dffa20cf36460d23bfb22e17be6e5339891f8537f32db79887caf832048b
Deleted: sha256:c213ffdc9f7032702de5a8e9045fcce2353b7221ef6bf4509e02005cfc858f58
Deleted: sha256:3fddf55a451aa43707518f2d8788c12ee5eb1f1e3075433f5bcf4d445d5c275d
Deleted: sha256:0f5ff0cf6a1c53f94b15f03536c490040f233bc455f1232f54cc8eb344a3a368
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi -f  a9090db7be5a 
Untagged: continuumio/anaconda3@sha256:e07b9ca98ac1eeb1179dbf0e0bbcebd87701f8654878d6d8ce164d71746964d1
Deleted: sha256:a9090db7be5ac68e132ef5d73d085a99c7cd193dda1ffdb26a46580723b34ff4
Deleted: sha256:2e5aaa2d634154c39b4dcd67d75e8faa7b21daaeea1d23d8784167cb6f8c0d2c
Deleted: sha256:df6d9b9e3ce755f35f13354b2b3705eb71dbe8d201654cae1d8055ff03e764b3
Deleted: sha256:5659d7f64c83a8b0599c403e0620a1661db9c384e8a9f09ea1beb09d96e48fb4
Deleted: sha256:0f3a12fef684003e8dc0dfdcea32789db2179c6f9ad1e1e89bc05754ac44c6c5
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker rmi -f  d4d2a8e7d887  
Untagged: gcc:latest
Untagged: gcc@sha256:728cb48fde7df7a788d7fee93567e2841624aeaaea7e07fd42326836663d4066
Deleted: sha256:d4d2a8e7d8876292df6591ada3da6b466e62c7118d34a555c704200c11610330
Deleted: sha256:fd50d45e381461b0d4c1eb8bf9539ee500ae87af35158c359790ee5d46eee862
Deleted: sha256:a8eeb82b027082c585658523f866274ca2ed6844e66f484a0786eeca39fbb5c4
Deleted: sha256:db50dd440fc16e7d5085214f79501e051540c83381ba80d703f7bcc555f28b3f
Deleted: sha256:b27e7f388b97592c7f3166ae3141049f76faeb338c7bab1b9b02781f517c44f6
Deleted: sha256:de896c693ce8da83a59add0b97711d214c3457a8fa3578126a64d3955c38842b
Deleted: sha256:2d9c829ae3f7ff3e148e5c7c3a1cf378b0f90b79035e2fe9a8d78c63ccde4c89
Deleted: sha256:b1ae7168c6f3e061aa3943740ec3ceaf8e582dc65feab31d2b56d464a5062d59
Deleted: sha256:4a495dbc04bd205c728297a08cf203988e91caeafe4b21fcad94c893a53d96dc
Deleted: sha256:3b10514a95bec77489a57d6e2fbfddb7ddfdb643907470ce5de0f1b05c603706
OgawaKiyoshi-no-MacBook-Pro:~ ogawakiyoshi$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

```
## shell

```
#!/bin/bash
while read line
  do 
    docker rm $line
  done < rm.txt
```
rm.txtに削除するコンテナ番号を入れておく。
コンテナが含む大きさにより、止まったように感じることがある。

# 参考文献(reference)
docker 入門
https://qiita.com/kaizen_nagoya/items/2f31319e40ddaa0bf8a5

一覧の一覧( The directory of directories of mine.) Qiita(100)
https://qiita.com/kaizen_nagoya/items/7eb0e006543886138f39

プログラマが知っていると良い「公序良俗」
https://qiita.com/kaizen_nagoya/items/9fe7c0dfac2fbd77a945

小川清最終講義、小川清最終講義（再）計画, Ethernet(100) 英語(100) 安全(100)
https://qiita.com/kaizen_nagoya/items/e2df642e3951e35e6a53

＜この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。＞

 ＜この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。＞
# 文書履歴(document history)
ver. 0.10 初稿 20181010
ver. 0.11 みだし変更 20181015
ver. 0.12 わかったこと、わからなかったこと、よかったこと、改めるとよいこと、みだし、作業記録追記 20181019
ver. 0.13 番号変更、参考文献追記 20181028
### 最後までおよみいただきありがとうございました。
いいね　💚、フォローをお願いします。
#### Thank you very much for reading to the last sentence.
Please press the like icon 💚　and follow me for your happy life.