LoginSignup
2
0

今日(2019年2月21日)、dockerで errorが出た、

macOS 10.12.6, 16GBメモリ, 3GH Intel Corei7, Mac mini(Late 2014)
Docker Desktop version 2.0.0.2(30215) stable: Engine 18.09.1,Compose: 1.23.2, Machine 0.16.1

1. failed to register layer: Error processing tar file(exit status 1: unpigz: skipping: : corrupted -- crc32 mismatch

bash
$ docker run -it kaizenjapan/anaconda-deep /bin/bash
Unable to find image 'kaizenjapan/anaconda-deep:latest' locally
latest: Pulling from kaizenjapan/anaconda-deep
cc1a78bfd46b: Pull complete 
314b82d3c9fe: Pull complete 
adebea299011: Extracting [==================================================>]  1.491GB/1.491GB
f7baff790e81: Download complete 
14177dba66b0: Download complete 
docker: failed to register layer: Error processing tar file(exit status 1: unpigz: skipping: <stdin>: corrupted -- crc32 mismatch
): .
See 'docker run --help'.

2. Error response from daemon: Bad response from Docker engine.

bash
$ docker ps
Error response from daemon: Bad response from Docker engine
bash
$ docker run -it kaizenjapan/anaconda-deep /bin/bash
docker: Error response from daemon: Bad response from Docker engine.
See 'docker run --help'.

次の2つの場合との厳密な区分けが認識できていない。dockerを立ち上げなおしたり、https://hub.docker.com にログインし直したりするとでなくなることがある。

3.Cannot connect to the Docker daemon

bash
$ docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

dockerソフトが起動していなかったか、更新のために一旦終了している時に出るらしい。
更新を終了すれば出なくなる。

4. denied: requested access to the resource is denied

bash
$ docker ps
CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS              PORTS               NAMES
20c2d6be8c6b        kaizenjapan/anaconda-deep   "/usr/bin/tini -- /b…"   About an hour ago   Up About an hour                        blissful_hypatia
cba6b867cea2        kaizenjapan/anaconda-deep   "/usr/bin/tini -- /b…"   2 hours ago         Up 2 hours                              upbeat_raman
KM-T:~ dlkoushi$ docker commit cba6b867cea2        kaizenjapan/anaconda-deep  
sha256:62a378c79bc2f1726e81a583755cdb9473fb5364c13904624257a90cd63cb73d
KM-T:~ dlkoushi$ docker push kaizenjapan/anaconda-deep
The push refers to repository [docker.io/kaizenjapan/anaconda-deep]
4d89ee8c718e: Preparing 
37523dab3f69: Preparing 
6410333f34cf: Preparing 
cf342e34eca3: Preparing 
cea95006e36a: Preparing 
0f3a12fef684: Waiting 
denied: requested access to the resource is denied

docker hub
https://hub.docker.com にログインしなおしたら出なくなった。
コマンドと、アイコンのどちらでもログインしなおせるはず。
コマンドか、アイコンかどちらかだとエラーになることがある。原因不明。

5. ERRO[194630] error waiting for container: EOF

dockerが動いている状態で、dockerソフトをrestartした。

bash
# ERRO[194630] error waiting for container: EOF   

6. Play with Docker でエラー

参考資料(reference)

docker利用を勧める256の理由(現在12)
https://qiita.com/kaizen_nagoya/items/c4e5075142bf5e11ddbe

言語処理100本ノックをdockerで。
https://qiita.com/kaizen_nagoya/items/7e7eb7c543e0c18438c4

Dockerをどっかーらどうやって使えばいいんでしょう。TOPPERS/FMP on RaspberryPi with Macintosh編 5つの関門「名古屋のIoTは名古屋のOSで」
https://qiita.com/kaizen_nagoya/items/9c46c6da8ceb64d2d7af

なぜdockerで機械学習するか 書籍・ソース一覧作成中 (目標100)https://qiita.com/kaizen_nagoya/items/ddd12477544bf5ba85e2

65歳からのプログラミング入門
https://qiita.com/kaizen_nagoya/items/1561f910c275b22d7c9f

「DockerでPHP7.0×Apacheの環境を構築する@kurkuru」IT業界新人利用時の16の壁(mac mini編)
https://qiita.com/kaizen_nagoya/items/315e8d05a6eef00b56d1

「ゼロから作るDeep Learning 2自然言語処理編」読書会に参加する前に読んで置くとよい資料とプログラム
https://qiita.com/kaizen_nagoya/items/537b1810265bbbc70e73

dockerで画面表示
https://qiita.com/kaizen_nagoya/items/a353862ec69fccce8bc2

docker入門予定
https://qiita.com/kaizen_nagoya/items/88beed331a1ba814a500

dockerfile
https://qiita.com/kaizen_nagoya/items/cbb6c2c8da78bcbffb08

docker hub とQiita
https://qiita.com/kaizen_nagoya/items/798358bba382d693e391

softether on docker(作業中)
https://qiita.com/kaizen_nagoya/items/fd8778bc768f2be734e2

softether on docker(cantos) 作業中
https://qiita.com/kaizen_nagoya/items/8afc39c6a4b1d17d1f76

docker で jq
https://qiita.com/kaizen_nagoya/items/8b35775c354cac36093b

Reference

Error一覧 error(0)
https://qiita.com/kaizen_nagoya/items/48b6cbc8d68eae2c42b8

<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>
This article is an individual impression based on the individual's experience. It has nothing to do with the organization or business to which I currently belong.

文書履歴(document history)

ver. 0.01 初稿 20190221
ver. 0.02 5. 参考資料 追記 20190222
ver. 0.03 表題変更 20190515
ver. 0.04 表題追記 20190813
ver. 0.05 ありがとう追記 20230522
ver. 0.06 add url  20240508

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

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

Thank you very much for reading to the last sentence.

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

2
0
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
2
0