diff --git a/Running-docker-container-with-non-root-user.md b/Running-docker-container-with-non-root-user.md index 715e585..d8993c5 100644 --- a/Running-docker-container-with-non-root-user.md +++ b/Running-docker-container-with-non-root-user.md @@ -2,7 +2,7 @@ By default `vaultwarden/server` is using root user to run service inside the con 1. Make sure that the directory, you're mounting inside the container will be writable by the user. For example if you decide to run as `nobody`, the directory needs to be writable by user with id 65534. For other ways to specify user inside the container, see the [docker documentation](https://docs.docker.com/engine/reference/run/#user), in our examples here we will use `nobody`. -```bash +```console # Make the directory on the host, change this to you preferred path sudo mkdir /vw-data @@ -16,7 +16,7 @@ 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. -```bash +```console docker run -d \ --name vaultwarden \ --user nobody \