# Auto Startup upon power on

**URL:** <https://vaultwarden.discourse.group/t/auto-startup-upon-power-on/835>\
**Category:** Help\
**Created:** [April 16, 2021, 10:06am UTC](https://vaultwarden.discourse.group/t/auto-startup-upon-power-on/835 "2021-04-16T10:06:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![derrickr](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/derrickr/32/261_2.png) [@derrickr](https://vaultwarden.discourse.group/u/derrickr)\
**Post date:** [April 16, 2021, 10:06am UTC](https://vaultwarden.discourse.group/t/auto-startup-upon-power-on/835/1 "2021-04-16T10:06:23Z")

</div>

Any advice on the best way to get Bitwardenrs to automatically start when the device powers up?

I’m still new to docker and believe I could configure a systemd service or use command line options such as:

```auto
docker run -d --restart unless-stopped bitwarden

```

Would appreciate any thoughts on best practice.

Cheers!

---

<div class="post-metadata">

**Author:** ![WpJ](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@WpJ](https://vaultwarden.discourse.group/u/WpJ)\
**Post date:** [April 17, 2021, 7:24am UTC](https://vaultwarden.discourse.group/t/auto-startup-upon-power-on/835/2 "2021-04-17T07:24:14Z")

</div>

Your system (I assume that this is a Linux OS) should start the docker engine automatically (you can check it is running via `docker info`).

The docker engine, in turn, will restart a running container (except if you use specific `--restart` flags, but the one you mentioned is fine).

So you can start the container once for all via your command (though you should map a volume so that your information is persistent, otherwise once you upgrade you will lose everything you configured and your passwords - this is the normal behaviour of docker, BW has nothing to do with that).

I would suggest you use `docker-compose` to manage your containers, it is much easier as you go on.
