ユゲタです。
「システムエラー」とかけまして、
「子供が必ず大好きな食べ物」と、ときます。
そのココロは・・・
おそらく、ハンバーグ(半バグ)・・・
エラー内容
docker-composeでbuildするときに、真っ赤な字で以下のようなエラーで強制終了してしまい困ったという話です。
ERROR: Service 'nginx' failed to build: The command '/bin/sh -c apt-get install -y .' returned a ..non-zero code: 100
どうやらこれは、"apt-get update"せよ。という事らしいのだが、Dockerfileは以下のように書いてある。
RUN apt-get update
RUN apt-get install -y nginx
色々調べてみると、このままではどうやらよろしくないらしく、updateは実行されていないのだそうだ。
これを解決するには、以下のように書くと良いらしい。
RUN apt-get update && apt-get install -y nginx
マニュアルサイトにかかれているのに無視していた自分が悪いのは重々承知です。
でも、docker-composeも、リポジトリが時間に応じて当初はいらなかったupdate処理が、必要になってくるので、そのうち使えなくなるという可能性もありそうですね。
自分リポジトリを格納しておくほうがいいのかも・・・と頭をよぎりました。
buildエラーが出たあとの処理
docker-compose buildコマンドがエラーで終了すると、ゴミイメージが貯まります。
溜まったゴミは、適時処理(削除)しておかないと、ゴミ屋敷と化してしまいます。
処理しなかったゴミ屋敷はこんな感じ。
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> ae19a801956c 9 hours ago 325MB
<none> <none> 14f7e464be58 6 days ago 321MB
mynt_web latest 1f77c117b436 7 days ago 146MB
myntpage_web latest 7edf6fec0f04 9 days ago 1.48GB
<none> <none> c2468f7cee75 13 days ago 1.48GB
<none> <none> 3eba5a1d0bb7 2 weeks ago 1.45GB
<none> <none> 883ada6b5f35 2 weeks ago 807MB
<none> <none> a84077d455e5 2 weeks ago 1.44GB
<none> <none> 7011b0f594fe 2 weeks ago 1.07GB
<none> <none> 38cc3e68ebb3 2 weeks ago 1.44GB
<none> <none> 2bdf140c03dc 2 weeks ago 1.44GB
<none> <none> 727da9e1e8ff 2 weeks ago 1.44GB
<none> <none> c646c4565850 3 weeks ago 1.41GB
<none> <none> dbec20d44812 3 weeks ago 230MB
<none> <none> 21ad28f4b512 3 weeks ago 230MB
<none> <none> 5cc563c1eaa5 3 weeks ago 230MB
<none> <none> 1fe7c354a3a1 3 weeks ago 230MB
<none> <none> 3747dd61237a 3 weeks ago 179MB
<none> <none> 2bc2b633385b 3 weeks ago 230MB
<none> <none> da0a65b19801 3 weeks ago 230MB
smfuljp_web latest 3a7524807688 3 weeks ago 1.31GB
<none> <none> b90f4f2c4071 3 weeks ago 204MB
<none> <none> 8562091c8ec8 3 weeks ago 204MB
<none> <none> 9d8d4ca4918e 3 weeks ago 204MB
<none> <none> c1c051a79245 3 weeks ago 204MB
<none> <none> b3a31de643ac 3 weeks ago 204MB
<none> <none> d76489b20cc6 3 weeks ago 204MB
docker_web latest 29ad77a35273 3 weeks ago 320MB
<none> <none> 0e6e5e621d24 3 weeks ago 320MB
<none> <none> a1144fbdaa51 3 weeks ago 286MB
<none> <none> 90946c9d452b 3 weeks ago 286MB
<none> <none> c1fba565c7b2 3 weeks ago 286MB
<none> <none> 60ade1afe0ff 3 weeks ago 286MB
<none> <none> 9e9c4317429a 3 weeks ago 1.42GB
<none> <none> 6626ebd05735 3 weeks ago 1.42GB
<none> <none> 7b273dc962f4 3 weeks ago 1.42GB
<none> <none> 080ca806da82 3 weeks ago 1.42GB
<none> <none> 11846052e3af 3 weeks ago 1.42GB
<none> <none> 86347e92a41b 3 weeks ago 1.42GB
<none> <none> 6781a2af69e8 3 weeks ago 1.42GB
<none> <none> 8f1f56770b80 3 weeks ago 1.43GB
<none> <none> f59c4540407a 3 weeks ago 1.43GB
<none> <none> e9c98d2b3ae5 3 weeks ago 1.26GB
<none> <none> 85138c6eaf50 3 weeks ago 1.26GB
<none> <none> 902f832f0347 3 weeks ago 1.26GB
<none> <none> c8367009d9d0 3 weeks ago 126MB
<none> <none> d807efb5e867 3 weeks ago 1.26GB
<none> <none> f59ea088eee7 3 weeks ago 1.26GB
<none> <none> f55fd55ab025 3 weeks ago 1.26GB
<none> <none> 766b60b271e7 3 weeks ago 1.09GB
<none> <none> c0befae1a1fa 3 weeks ago 1.09GB
docker_nodejs latest 1dd1bfbf5867 4 weeks ago 558MB
myntpage_nodejs latest 1dd1bfbf5867 4 weeks ago 558MB
smfuljp_nodejs latest 1dd1bfbf5867 4 weeks ago 558MB
<none> <none> 30d411d319fe 4 weeks ago 1.33GB
<none> <none> 28796602851f 4 weeks ago 422MB
<none> <none> 01d2d2f2d15e 4 weeks ago 113MB
<none> <none> e0eca5621e34 4 weeks ago 113MB
<none> <none> 96d153589d3f 4 weeks ago 108MB
<none> <none> 2ea9e4abe617 4 weeks ago 108MB
<none> <none> 4f0c9de8d9d7 4 weeks ago 108MB
<none> <none> cccb026c469d 4 weeks ago 77.8MB
<none> <none> f1cb3e5413d5 4 weeks ago 108MB
<none> <none> 189e593721d4 4 weeks ago 108MB
<none> <none> 1b288eabf8fb 4 weeks ago 123MB
<none> <none> 42ef8e9317f3 4 weeks ago 108MB
<none> <none> 279136d20050 4 weeks ago 108MB
<none> <none> b856e3bb5f7a 4 weeks ago 108MB
<none> <none> 2df667cb1059 4 weeks ago 108MB
<none> <none> f0c6108e78dc 4 weeks ago 108MB
mynt_node_nodejs latest 784501d1f9e5 4 weeks ago 108MB
<none> <none> fe71291184af 4 weeks ago 940MB
node latest 07e774543bdf 5 weeks ago 939MB
mynt_node_web latest 0bca2977286c 6 weeks ago 126MB
<none> <none> f018e8581e67 6 weeks ago 126MB
<none> <none> 9e58be840e52 6 weeks ago 126MB
docker_php74 latest 4a744685485d 6 weeks ago 505MB
mynt_node_php74 latest 4a744685485d 6 weeks ago 505MB
mynt_php74 latest 4a744685485d 6 weeks ago 505MB
smfuljp_php74 latest 4a744685485d 6 weeks ago 505MB
<none> <none> 54015efb46e1 6 weeks ago 505MB
<none> <none> bae997f209f6 7 weeks ago 505MB
<none> <none> feb3aa083bdc 7 weeks ago 430MB
php 7.4-fpm 1de15162d375 7 weeks ago 405MB
<none> <none> 1832e71c6db6 7 weeks ago 497MB
<none> <none> 50382dd4acc5 7 weeks ago 425MB
<none> <none> f339bcca9176 7 weeks ago 496MB
<none> <none> d5aa03a00f73 7 weeks ago 497MB
<none> <none> 380b5f34e51a 7 weeks ago 497MB
<none> <none> f8caa2ffafab 7 weeks ago 497MB
<none> <none> b7b41ed0838e 7 weeks ago 497MB
<none> <none> a45899eb82fd 7 weeks ago 497MB
<none> <none> b50390df4b40 7 weeks ago 405MB
<none> <none> 9266fc20c030 7 weeks ago 494MB
<none> <none> 68c6d171a21d 7 weeks ago 494MB
<none> <none> 3d1e0f181aa7 7 weeks ago 494MB
<none> <none> a39e1456e7f3 7 weeks ago 494MB
<none> <none> 74d2fc8ff9eb 7 weeks ago 494MB
<none> <none> 0760ffd76da8 7 weeks ago 527MB
<none> <none> de3d3c1cba07 7 weeks ago 527MB
<none> <none> 714e87b7c38b 7 weeks ago 229MB
mynt_postfix latest d255b9cd9795 7 weeks ago 189MB
<none> <none> 215c5037a3a6 7 weeks ago 229MB
<none> <none> d69392a676fa 7 weeks ago 229MB
<none> <none> bd1c48b1cda6 8 weeks ago 527MB
<none> <none> 141befe9aae0 8 weeks ago 461MB
<none> <none> 7d28a0160ede 8 weeks ago 461MB
<none> <none> d95fb43474b1 8 weeks ago 529MB
<none> <none> fb348e5a0f9a 8 weeks ago 527MB
<none> <none> 557dc8e843b7 8 weeks ago 527MB
<none> <none> 5621b69926b9 8 weeks ago 527MB
<none> <none> adc471d70ce5 8 weeks ago 494MB
<none> <none> 1613497b6b83 8 weeks ago 494MB
<none> <none> ace1833fd092 8 weeks ago 494MB
<none> <none> 5c80844b11ab 8 weeks ago 494MB
<none> <none> 71c43a21c13d 8 weeks ago 405MB
<none> <none> 925bca9ef61c 8 weeks ago 405MB
<none> <none> 4d638bbd6ffa 8 weeks ago 405MB
<none> <none> 2c6a29bdddcf 8 weeks ago 494MB
<none> <none> 72f3d4d1c1c6 8 weeks ago 493MB
<none> <none> 40ca0e531021 8 weeks ago 428MB
<none> <none> 356362720c35 8 weeks ago 428MB
<none> <none> 0449973965ed 8 weeks ago 428MB
<none> <none> dc3f385a4f53 8 weeks ago 126MB
<none> <none> 3eaabd2819f3 8 weeks ago 428MB
<none> <none> d4223db33b22 8 weeks ago 428MB
<none> <none> 8d1a76ab3963 8 weeks ago 428MB
<none> <none> e57c3733df7d 8 weeks ago 428MB
<none> <none> 66a1baa8aacb 8 weeks ago 428MB
<none> <none> bb7a35138ab0 8 weeks ago 428MB
<none> <none> 33367c758d40 8 weeks ago 428MB
<none> <none> 54bc08ecc550 8 weeks ago 428MB
<none> <none> 85d4976278a4 8 weeks ago 126MB
<none> <none> 971187673573 8 weeks ago 126MB
<none> <none> 5894c0256ca3 8 weeks ago 126MB
<none> <none> 5d2619ee5ea5 8 weeks ago 428MB
<none> <none> bd747d59ee1d 8 weeks ago 126MB
<none> <none> 7b0b65824990 8 weeks ago 126MB
<none> <none> f76b9d46ef4c 8 weeks ago 126MB
<none> <none> 9cbf8d985340 8 weeks ago 126MB
<none> <none> a2c4ad3a0c19 8 weeks ago 126MB
<none> <none> fafbf0f74ae5 8 weeks ago 428MB
<none> <none> 826d7ed27f95 8 weeks ago 405MB
<none> <none> 1d8ecf5337ac 8 weeks ago 941MB
<none> <none> 068bbbd4c154 8 weeks ago 126MB
<none> <none> fa9d801e5f2f 8 weeks ago 126MB
<none> <none> 0e6a445ee443 8 weeks ago 126MB
<none> <none> adb75ea05f78 8 weeks ago 327MB
<none> <none> 269f7376a309 8 weeks ago 327MB
<none> <none> 095dd3d99ae5 8 weeks ago 327MB
<none> <none> d6a0b7ea969d 8 weeks ago 395MB
<none> <none> aa7195ce3f72 8 weeks ago 327MB
mynt_php72 latest 084bb70fcdc0 8 weeks ago 323MB
ubuntu/mynt latest c47415a3d382 8 weeks ago 6.55GB
centos 8 470671670cac 2 months ago 237MB
centos latest 470671670cac 2 months ago 237MB
ubuntu latest ccc6e87d482b 2 months ago 64.2MB
nginx latest c7460dfcab50 2 months ago 126MB
php 7-fpm fa37bd6db22a 2 months ago 405MB
php fpm fa37bd6db22a 2 months ago 405MB
mysql latest c7109f74d339 9 months ago 443MB
node 12.4.0-alpine d4edda39fb81 9 months ago 77.8MB
dr_baeltz latest 0f64d6cd1a32 11 months ago 4.29GB
eccube/eccube3 0.1 4d972fd907b6 11 months ago 2.49GB
centos centos7 9f38484d220f 12 months ago 202MB
ubuntu/ideacompo latest 64d1259129a1 2 years ago 1.59GB
emarcs/postfix latest 0295bbf70f98 4 years ago 189MB
mynt_main_srv latest 0295bbf70f98 4 years ago 189MB
見苦しい限りですが、恐ろしくディスク容量も食いまくっている事もわかります。
適時、以下コマンドにてイメージ削除をするようにしましょう。
$ docker rmi aa7195ce3f72 d6a0b7ea969d 095dd3d99ae5
Deleted: sha256:aa7195ce3f726771a5fe6bc1d48da0d44ed81a9dee4d78391fc3e2f51378921c
Deleted: sha256:bcb0fbef4ed2755fd28bebce41f229e4c4737478793fa0383f1f0833c49baf3a
Deleted: sha256:6d1d975b4048a3025c32896955727703a0b68ca23e17fd809d9a62c1446fa29f
Deleted: sha256:d6a0b7ea969d48a4ad6f57a9c037b5287dde4bd83dfdb17db2822f866197f513
Deleted: sha256:e42d48f9192673e35d700ac0b769e0f94a0a9eaa4f1fa3f9c2695593576e58a5
Deleted: sha256:f2741ecebf19cfd42497c152ad96677a12428f440db00de713af7b7c00d95d6d
Deleted: sha256:5253157df5c14abbd0febc64c292094c6d9041585ab44a4db04ebe76494374d5
Deleted: sha256:a45eb94a4bce3ab618d947669950bb502933e85001389c3eab255e2704e37cf8
Deleted: sha256:095dd3d99ae52b8e4e148dc1b5fe8451901204ad7d0037afc5d4236ba962b605
Deleted: sha256:672a7c333f22d46a5861bd2713c0f15914c954fe805cba27e74af9c604a00ae6
Deleted: sha256:a6d02a2b8df7c95d4eb562479fa0815ba2cc9fff454d3b9a63f955e9c6063597
複数同時に消せるので、ゴミ屋敷になった人も慌てず落ち着いて対処しましょう。
ちなみに、ゴミのみの一覧表示は以下の様にします。
$ docker images | grep '<none>'
<none> <none> ae19a801956c 9 hours ago 325MB
<none> <none> 14f7e464be58 6 days ago 321MB
<none> <none> c2468f7cee75 13 days ago 1.48GB
<none> <none> 3eba5a1d0bb7 2 weeks ago 1.45GB
<none> <none> 883ada6b5f35 2 weeks ago 807MB
<none> <none> a84077d455e5 2 weeks ago 1.44GB
<none> <none> 7011b0f594fe 2 weeks ago 1.07GB
<none> <none> 38cc3e68ebb3 2 weeks ago 1.44GB
<none> <none> 2bdf140c03dc 2 weeks ago 1.44GB
<none> <none> 727da9e1e8ff 2 weeks ago 1.44GB
<none> <none> c646c4565850 3 weeks ago 1.41GB
<none> <none> dbec20d44812 3 weeks ago 230MB
<none> <none> 21ad28f4b512 3 weeks ago 230MB
<none> <none> 5cc563c1eaa5 3 weeks ago 230MB
<none> <none> 1fe7c354a3a1 3 weeks ago 230MB
<none> <none> 3747dd61237a 3 weeks ago 179MB
<none> <none> 2bc2b633385b 3 weeks ago 230MB
<none> <none> da0a65b19801 3 weeks ago 230MB
<none> <none> b90f4f2c4071 3 weeks ago 204MB
<none> <none> 8562091c8ec8 3 weeks ago 204MB
<none> <none> 9d8d4ca4918e 3 weeks ago 204MB
<none> <none> c1c051a79245 3 weeks ago 204MB
<none> <none> b3a31de643ac 3 weeks ago 204MB
<none> <none> d76489b20cc6 3 weeks ago 204MB
<none> <none> 0e6e5e621d24 3 weeks ago 320MB
<none> <none> a1144fbdaa51 3 weeks ago 286MB
<none> <none> 90946c9d452b 3 weeks ago 286MB
<none> <none> c1fba565c7b2 3 weeks ago 286MB
<none> <none> 60ade1afe0ff 3 weeks ago 286MB
<none> <none> 9e9c4317429a 3 weeks ago 1.42GB
<none> <none> 6626ebd05735 3 weeks ago 1.42GB
<none> <none> 7b273dc962f4 3 weeks ago 1.42GB
<none> <none> 080ca806da82 3 weeks ago 1.42GB
<none> <none> 11846052e3af 3 weeks ago 1.42GB
<none> <none> 86347e92a41b 3 weeks ago 1.42GB
<none> <none> 6781a2af69e8 3 weeks ago 1.42GB
<none> <none> 8f1f56770b80 3 weeks ago 1.43GB
<none> <none> f59c4540407a 3 weeks ago 1.43GB
<none> <none> e9c98d2b3ae5 3 weeks ago 1.26GB
<none> <none> 85138c6eaf50 3 weeks ago 1.26GB
<none> <none> 902f832f0347 3 weeks ago 1.26GB
<none> <none> c8367009d9d0 3 weeks ago 126MB
<none> <none> d807efb5e867 3 weeks ago 1.26GB
<none> <none> f59ea088eee7 3 weeks ago 1.26GB
<none> <none> f55fd55ab025 3 weeks ago 1.26GB
<none> <none> 766b60b271e7 3 weeks ago 1.09GB
<none> <none> c0befae1a1fa 3 weeks ago 1.09GB
<none> <none> 30d411d319fe 4 weeks ago 1.33GB
<none> <none> 28796602851f 4 weeks ago 422MB
<none> <none> 01d2d2f2d15e 4 weeks ago 113MB
<none> <none> e0eca5621e34 4 weeks ago 113MB
<none> <none> 96d153589d3f 4 weeks ago 108MB
<none> <none> 2ea9e4abe617 4 weeks ago 108MB
<none> <none> 4f0c9de8d9d7 4 weeks ago 108MB
<none> <none> cccb026c469d 4 weeks ago 77.8MB
<none> <none> f1cb3e5413d5 4 weeks ago 108MB
<none> <none> 189e593721d4 4 weeks ago 108MB
<none> <none> 1b288eabf8fb 4 weeks ago 123MB
<none> <none> 42ef8e9317f3 4 weeks ago 108MB
<none> <none> 279136d20050 4 weeks ago 108MB
<none> <none> b856e3bb5f7a 4 weeks ago 108MB
<none> <none> 2df667cb1059 4 weeks ago 108MB
<none> <none> f0c6108e78dc 4 weeks ago 108MB
<none> <none> fe71291184af 4 weeks ago 940MB
<none> <none> f018e8581e67 6 weeks ago 126MB
<none> <none> 9e58be840e52 6 weeks ago 126MB
<none> <none> 54015efb46e1 6 weeks ago 505MB
<none> <none> bae997f209f6 7 weeks ago 505MB
<none> <none> feb3aa083bdc 7 weeks ago 430MB
<none> <none> 1832e71c6db6 7 weeks ago 497MB
<none> <none> 50382dd4acc5 7 weeks ago 425MB
<none> <none> f339bcca9176 7 weeks ago 496MB
<none> <none> d5aa03a00f73 7 weeks ago 497MB
<none> <none> 380b5f34e51a 7 weeks ago 497MB
<none> <none> f8caa2ffafab 7 weeks ago 497MB
<none> <none> b7b41ed0838e 7 weeks ago 497MB
<none> <none> a45899eb82fd 7 weeks ago 497MB
<none> <none> b50390df4b40 7 weeks ago 405MB
<none> <none> 9266fc20c030 7 weeks ago 494MB
<none> <none> 68c6d171a21d 7 weeks ago 494MB
<none> <none> 3d1e0f181aa7 7 weeks ago 494MB
<none> <none> a39e1456e7f3 7 weeks ago 494MB
<none> <none> 74d2fc8ff9eb 7 weeks ago 494MB
<none> <none> 0760ffd76da8 7 weeks ago 527MB
<none> <none> de3d3c1cba07 7 weeks ago 527MB
<none> <none> 714e87b7c38b 7 weeks ago 229MB
<none> <none> 215c5037a3a6 7 weeks ago 229MB
<none> <none> d69392a676fa 7 weeks ago 229MB
<none> <none> bd1c48b1cda6 8 weeks ago 527MB
<none> <none> 141befe9aae0 8 weeks ago 461MB
<none> <none> 7d28a0160ede 8 weeks ago 461MB
<none> <none> d95fb43474b1 8 weeks ago 529MB
<none> <none> fb348e5a0f9a 8 weeks ago 527MB
<none> <none> 557dc8e843b7 8 weeks ago 527MB
<none> <none> 5621b69926b9 8 weeks ago 527MB
<none> <none> adc471d70ce5 8 weeks ago 494MB
<none> <none> 1613497b6b83 8 weeks ago 494MB
<none> <none> ace1833fd092 8 weeks ago 494MB
<none> <none> 5c80844b11ab 8 weeks ago 494MB
<none> <none> 71c43a21c13d 8 weeks ago 405MB
<none> <none> 925bca9ef61c 8 weeks ago 405MB
<none> <none> 4d638bbd6ffa 8 weeks ago 405MB
<none> <none> 2c6a29bdddcf 8 weeks ago 494MB
<none> <none> 72f3d4d1c1c6 8 weeks ago 493MB
<none> <none> 40ca0e531021 8 weeks ago 428MB
<none> <none> 356362720c35 8 weeks ago 428MB
<none> <none> 0449973965ed 8 weeks ago 428MB
<none> <none> dc3f385a4f53 8 weeks ago 126MB
<none> <none> 3eaabd2819f3 8 weeks ago 428MB
<none> <none> d4223db33b22 8 weeks ago 428MB
<none> <none> 8d1a76ab3963 8 weeks ago 428MB
<none> <none> e57c3733df7d 8 weeks ago 428MB
<none> <none> 66a1baa8aacb 8 weeks ago 428MB
<none> <none> bb7a35138ab0 8 weeks ago 428MB
<none> <none> 33367c758d40 8 weeks ago 428MB
<none> <none> 54bc08ecc550 8 weeks ago 428MB
<none> <none> 85d4976278a4 8 weeks ago 126MB
<none> <none> 971187673573 8 weeks ago 126MB
<none> <none> 5d2619ee5ea5 8 weeks ago 428MB
<none> <none> 5894c0256ca3 8 weeks ago 126MB
<none> <none> bd747d59ee1d 8 weeks ago 126MB
<none> <none> 7b0b65824990 8 weeks ago 126MB
<none> <none> f76b9d46ef4c 8 weeks ago 126MB
<none> <none> 9cbf8d985340 8 weeks ago 126MB
<none> <none> a2c4ad3a0c19 8 weeks ago 126MB
<none> <none> fafbf0f74ae5 8 weeks ago 428MB
<none> <none> 826d7ed27f95 8 weeks ago 405MB
<none> <none> 1d8ecf5337ac 8 weeks ago 941MB
<none> <none> 068bbbd4c154 8 weeks ago 126MB
<none> <none> fa9d801e5f2f 8 weeks ago 126MB
<none> <none> 0e6a445ee443 8 weeks ago 126MB
<none> <none> adb75ea05f78 8 weeks ago 327MB
<none> <none> 269f7376a309 8 weeks ago 327MB
身の毛がよだつぐらいゾッとしますね。
さて、ここらへんで、自分のリアルデスクも片付けようと思います。
0 件のコメント:
コメントを投稿