7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker buildでFATA[0011] unexpected EOFのエラーになるとき

Last updated at Posted at 2015-06-23

何度もDockerfileのbuildを繰り返していると、それまでうまくいってたbuildがうまくいかなくなることがあった(昼ぐらいから夜中まで数十回くらい試行錯誤してたと思う)。

エラーは次の通り

FATA[0011] unexpected EOF

とりあえず使ってないタグ無しimages(none)を全て削除するとbuildできるようにはなった。

$ docker rmi -f $(docker images | grep '<none>' | awk '{print$3}')

ただしdocker runできない。

エラーは次の通り(見やすさのために改行している)

FATA[0000] Error response from daemon: Cannot start container
962e965251403fd2d9854ad33e8b166fbf715e42c480806a827606700e3cf193: 
pipe2: too many open files

念のため各コンテナをstopし、dockerをrestartして解決した。

$ sudo service docker restart
7
6
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
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?