1
5

More than 3 years have passed since last update.

【Docer】A server is already running.Check /hogehoge/tmp/pids/server.pid.とか言われてもファイルがない際の対処法

Last updated at Posted at 2020-03-09

docker-compose up --buildをしたところ、

image.png

と言われました。

ターミナルにて

$  cd /potepanec/tmp/pids

$  ls server.pid.

で探したが、 No such file or directory、ファイルがないと言われました。

解決策

まずControl + Cしてdockerを止める。

その次に、下記のコマンドで3つがupになっているか確認。

$ docker-compose ps

3つ全てupになっていれば正常、どれか一つがexitになっていれば異常が起こっている。
(どれか一つはexitになっていると思います。)

下記のコマンドを実行する。

$ docker-compose down

再び、docker-compose up --buildで立ち上げたところ成功。

なぐり書きです。

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