A server is already running. Check / [WORKDIR] /tmp/pids/server.pid. Solution

Status

After docker-compose up,

A server is already running. Check /[WORKDIR]/tmp/pids/server.pid.
 Exiting

Sometimes the server did not start.

Cause

The cause is that if you forcibly delete the container while the service is running, the pid file will remain.

Solution

As instructed

tmp/pids/server.pid.

If you go to see, the numbers are written here. Delete the server.pid. file and docker-compose up to solve it.

Recommended Posts

A server is already running. Check / [WORKDIR] /tmp/pids/server.pid. Solution
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do about "A server is already running ..." that happened without turning off the rails server in the terminal