← Back to Troubleshooting
Troubleshooting

Docker Container Keeps Restarting

docker ps shows "Restarting" instead of settling down. Here's how to actually find out why instead of guessing and re-running the install command.

5 minute read
Last tested: August 2026 · Docker 29.7.2

Read the logs before doing anything else

A restarting container means it's crashing right after it starts, and Docker's --restart always policy - which the setup guide's install command uses - keeps trying again automatically. The actual reason is almost always sitting in the container's own logs:

docker logs open-webui

For just the most recent output rather than the full history:

docker logs --tail 50 open-webui

Whatever error appears there is the real problem - guessing and re-running the install command without reading it first usually just recreates the same crash.

The usual suspects

The safe way to start fresh

If the logs don't point to an obvious fix, removing and recreating the container is safe - your chat history and settings live in a separate named Docker volume, not inside the container itself, so this doesn't lose data:

docker rm -f open-webui

Then run the original install command from the setup guide again. It will recreate the container and reconnect to the existing volume automatically.

Only the container is disposable, not the volume. Never run docker volume rm as a troubleshooting step unless you specifically intend to wipe your chat history and settings - that's a different, much more destructive action than removing and recreating the container.

Written from hands-on security operations experience. More about this site →