Missing Docker containers after reboot?

Linode Staff

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct