1
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 1 year has passed since last update.

dockerコンテナ内でファイルが作成できない

Last updated at Posted at 2023-10-26

問題

コンテナ接続コマンド

docker exec -it [コンテナ名] sh
laravelプロジェクト
app/storage/logs/ 配下にlaravel.logが作成できない。
sudo コマンドも聞かない、、、

解決方法

rootユーザーログインすればいい。
docker exec -u root -it [コンテナ名] sh

参考資料
Dockerコンテナ内での作業ユーザー作成方法

1
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
1
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?