4
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.

error checking context: 'can't stat '/home/user/myapp/tmp/db''.

Posted at

環境

EC2上でdockerにてimageをbuild中に起きた。

$ docker-compose build

エラー文

Building myapp
error checking context: 'can't stat '/home/user/myapp/tmp/db''.
ERROR: Service 'minnano_asobi' failed to build

原因

権限の問題みたい。

対処

権限を変更すると良い。
※対象のフォルダは適宜変更してください。

#対象のフォルダは自分の環境に合わせてください
$ sudo chown -R $USER /home/user/myapp/tmp/db

結果

$ docker-compose build
Building myapp
Sending build context to Docker daemon    288MB

...

Successfully built ********
Successfully tagged myapp:latest
4
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
4
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?