Docker Community Forums

Share and learn in the Docker community.

Docker Images/Container missing

I’ve been running docker on Ubuntu 18.04.4 LTS for about 3 months now. And this is the second time this has happened so far.

I seem to have lost all containers as well as images.

docker ps -a seems to reveal no containers.

The last time it just came back after a few days of trying docker ps -a however they were in exit status and i had to manually start them even tho all my containers have been set to always restart.

Appreciate any assistance anyone can provide.

Hmm … that’s strange.
Is there anything in the /var/log/syslog ?

One (possible) reason could be that an upgrade of the docker package was installed … and maybe didn’t went well. Thus docker service itself gets stopped/started causing all containers to be killed (if not stopped prior) … this should not affect the existing container/images, but …

Thanks. The syslog seems to only contain logs from today and nothing from yesterday.

Well I’ve managed to create all my containers from scratch. Fingers crossed that was the last time this happened.