Missing Docker containers after reboot?
My Linode rebooted for the first time since creating my Docker containers, and now they seem to be missing. Nothing shows up when I run docker ps
. What happened to my containers?
1 Reply
Your Docker containers are still present unless you destroyed them with docker rm
. It sounds like they just didn’t start automatically after the reboot, which can be resolved with a restart policy.
docker start --restart=always <container>
docker ps
only shows running containers, but adding the -a
flag will list all container instances and their status. You can check out our Quick Reference Cheat Sheet for an introduction to core Docker commands, should you find it helpful.