Home > Software engineering >  how to know which docker container, image was ON before server got shut down
how to know which docker container, image was ON before server got shut down

Time:11-20

I have a server in which the docker containers were running. Server got shutdown. How to know which container was on; Because container list are empty now.

docker images

docker contaienrs list empty

CodePudding user response:

Run this command to see whats container is running :

docker ps

To see all containers whaterver it doesnot running or is up:

docker ps -a

And check time container went down.

Bring it up :

docker start container_id

CodePudding user response:

Found out that there where no containers started. If it where, the containers would of been stopped.

  • Related