Parameter for restarting Docker container? #2271
-
Hey everyone, after my Vaultwarden ist running perfectly with Docker, I was wondering if there is any flag that enables the container to restart after I rebooted my VM, for example a "--restart=always" option. Once I append this to the Docker starting command, a container is created but not started, showing nothing when using "docker ps". Is there possibly any solution for that or a list of commands I can use with the "docker run"-command with Vaultwarden? Thanks in advance and keep up the great work, Oliver |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is much more a docker question than a vaultwarden question.
For managing docker containers, I definitely recommend using docker compose, as it's much easier to work with. |
Beta Was this translation helpful? Give feedback.
This is much more a docker question than a vaultwarden question.
--restart=always
is exactly the way to do this. That's what it means. I'm not sure what your fulldocker run
command is, but if it's not starting, then I suspect there's an error on startup. Definitely worth checking the logs.For managing docker containers, I definitely recommend using docker compose, as it's much easier to work with.