0
0

More than 3 years have passed since last update.

dockerを起動すると.envがnot directoryと言われる

Posted at

エラー

docker-compose up -dでdockerを起動しようとすると,

Encountered errors while bringing up the project 
...(中略)... not a directory ...

のようなエラーがでました.

要約すると,.envがディレクトリではなくファイル形式になっているよという内容のようでした.

たしかに.envをディレクトリにすると直るのですが,ファイル形式でないと環境変数などが記述できず意味がない…

解決方法

一度イメージごと削除して再起動したら直りました.
(ただのdocker-compose downでは直りませんでした)

# イメージごと削除する
docker-compose down --rmi all
# 起動
docker-compose up -d
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