Browse Source

Add SELinux instructions for persistent data

Container stops working after a couple of seconds when SELinux is enabled with error message `[vaultwarden][ERROR] Error creating keys, exiting...` which isn't explicit.
These optional instructions for SElinux make sure we won't fail to run vaultwarden as first experience ;)
pull/2810/head
Orsiris de Jong 3 years ago
committed by GitHub
parent
commit
8f01883dc2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      README.md

10
README.md

@ -31,8 +31,16 @@ Basically full implementation of Bitwarden API is provided including:
* YubiKey and Duo support * YubiKey and Duo support
## Installation ## Installation
Create a local directory where to map container persistent storage
```sh
mkdir /vw-data
```
Optional SELinux configuration
```sh
semanage fcontext -a -t svirt_sandbox_file_t '/vw-data(/.*)?'
restorecon -Rv /vw-data
```
Pull the docker image and mount a volume from the host for persistent storage: Pull the docker image and mount a volume from the host for persistent storage:
```sh ```sh
docker pull vaultwarden/server:latest docker pull vaultwarden/server:latest
docker run -d --name vaultwarden -v /vw-data/:/data/ -p 80:80 vaultwarden/server:latest docker run -d --name vaultwarden -v /vw-data/:/data/ -p 80:80 vaultwarden/server:latest

Loading…
Cancel
Save