Docker Community Forums

Share and learn in the Docker community.

Compose shows wrong state when restart=always

(Zmija1989) #1

I find out, that many times when my mongo db fails and try to restart itself, docker ps shows status restarting(100) and actually does nothing :confused: but docker-compose says status is up but this container does not exist at all anymore after first crash. Any ideas?

(Ralph Kincade) #2

what it the exact command or dockerfile you are using to launch it ??

try to run it with an "-i " and a “-t” to enable it to continue running after the mongo process has failed