-
Unable to start docker container using the following docker-compose. I have checked file permissions and free RAM and they don't seem to show any issue.
When I run this, I get the following log ending with the container crashing.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Where is your docker-compose file located at? I think you need to create a new directory folder named Valheim and run the docker-compose file in there then have your volumes like this in the compose file: volumes:
|
Beta Was this translation helpful? Give feedback.
-
This error is usually because the UID/GID of the mount point is different from the user that is set within the docker container (in this case Find the UID & GID of both locations defined in
https://github.com/mbround18/valheim-docker#container-env-variables Once you have both set them as env vars, replacing version: "3"
services:
valheim:
image: mbround18/valheim:latest
container_name: valheim
ports:
- 2456:2456/udp
- 2457:2457/udp
- 2458:2458/udp
environment:
- PORT=2456
- NAME="Server"
- WORLD="Dedicated"
- PASSWORD="password"
- TZ=Etc/GMT
- PUBLIC=1
- AUTO_UPDATE=0
- PUID=1000
- PGID=1000
volumes:
- /mnt/user/appdata/docker/valheim/saves:/home/steam/.config/unity3d/IronGate/Valheim
- /mnt/user/appdata/docker/valheim/server:/home/steam/valheim |
Beta Was this translation helpful? Give feedback.
-
@spannerman79 Where do we find the UID and GID? Any step by step guide on this? |
Beta Was this translation helpful? Give feedback.
@spannerman79
Noob question here, having this same issue.
Where do we find the UID and GID? Any step by step guide on this?