#エラー
以下のエラーが出た。
$ 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イメージを削除することができる。
上記を実行しエラー解決に至った。