0
0

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 3 years have passed since last update.

docker-compose buildで詰まった

Posted at

#エラー

以下のエラーが出た。

$ docker-compose build
db uses an image, skipping
test-db uses an image, skipping
chrome uses an image, skipping
Building app
Traceback (most recent call last):
  File "site-packages/docker/utils/build.py", line 97, in create_archive
  File "tarfile.py", line 1970, in addfile
  File "tarfile.py", line 250, in copyfileobj
  File "tempfile.py", line 481, in func_wrapper
OSError: [Errno 28] No space left on device

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 67, in main
  File "compose/cli/main.py", line 126, in perform_command
  File "compose/cli/main.py", line 302, in build
  File "compose/project.py", line 468, in build
  File "compose/project.py", line 450, in build_service
  File "compose/service.py", line 1125, in build
  File "site-packages/docker/api/build.py", line 160, in build
  File "site-packages/docker/utils/build.py", line 31, in tar
  File "site-packages/docker/utils/build.py", line 100, in create_archive
OSError: Can not read file in context: /Users/nami/Desktop/名称未設定フォルダ/Study_quest/名称未設定フォルダ/Study_quest/app/assets/fonts/font_1_honokamin.ttf
[8624] Failed to execute script docker-compose

初めは

OSError: Can not read file in context

で調べていたが解決せず

OSError: [Errno 28] No space left on device

こちらに注目して調べたところ
dockerの容量が足りないせいでcontextを読み込めずエラーになっていた。

#解決策

$ docker image prune

とすることで使っていないdockerイメージを削除することができる。
上記を実行しエラー解決に至った。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?