Renamed values according to the README
parent
827b366bf7
commit
f129827f00
|
@ -4,24 +4,24 @@ By default `vaultwarden/server` is using root user to run service inside the con
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Make the directory on the host, change this to you preferred path
|
# Make the directory on the host, change this to you preferred path
|
||||||
sudo mkdir /bw-data
|
sudo mkdir /vw-data
|
||||||
|
|
||||||
# Set the owner using user id.
|
# Set the owner using user id.
|
||||||
# Note that the ownership must match user in /etc/passwd *inside* the container, not on your host
|
# Note that the ownership must match user in /etc/passwd *inside* the container, not on your host
|
||||||
sudo chown 65534 /bw-data
|
sudo chown 65534 /vw-data
|
||||||
|
|
||||||
# Give the owner full rights to the folder
|
# Give the owner full rights to the folder
|
||||||
sudo chmod u+rwx /bw-data
|
sudo chmod u+rwx /vw-data
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Start the container with proper parameters. Define the user and make sure to start with port set to `1024` or higher.
|
2. Start the container with proper parameters. Define the user and make sure to start with port set to `1024` or higher.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name bitwarden \
|
--name vaultwarden \
|
||||||
--user nobody \
|
--user nobody \
|
||||||
-e ROCKET_PORT=1024 \
|
-e ROCKET_PORT=1024 \
|
||||||
-v /bw-data/:/data/ \
|
-v /vw-data/:/data/ \
|
||||||
-p 80:1024 \
|
-p 80:1024 \
|
||||||
vaultwarden/server:latest
|
vaultwarden/server:latest
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue