Skip to content

Commit

Permalink
chore(valheim): mention Segfault when running as another user
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
  • Loading branch information
P4sca1 committed Jul 16, 2024
1 parent 887ffec commit a37ab76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion valheim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To persist the game server data on the host filesystem, use `-v /absolute/path/o
The container is run as a non-root user by default and the user running inside the container has the id 1000. Make sure that the mounted directory is readable and writable by the user running the container. There are 2 ways to achieve this:

- Change the owner of the host directory: `chown -R 1000 /absolute/path/on/host` OR
- Run the container as the user, which owns the files on the host system. Make sure to specify the id of your local user, because the name is uknown inside the container. You can find it out using `id YOUR_USERNAME`. Then run the docker command using the `--user USER_ID` flag. E.g.: `docker create --user 500 ...`.
- ~~Run the container as the user, which owns the files on the host system. Make sure to specify the id of your local user, because the name is uknown inside the container. You can find it out using `id YOUR_USERNAME`. Then run the docker command using the `--user USER_ID` flag. E.g.: `docker create --user 500 ...`.~~ NOTE: As of writing, this method does not work for Valheim and produces a Segmentation Fault error.

## Ports

Expand Down

0 comments on commit a37ab76

Please sign in to comment.