Docker image for Valheim dedicated server.
First create a named data volume to hold the persistent world and config data:
docker volume create --name valheim-data
Then run the Valheim server:
docker run -it -d -p 2456-2458:2456-2458/udp -v valheim-data:/home/steam/.config/unity3d/IronGate/Valheim --name valheim-server phlak/valheim
ENV SERVER_NAME "My World" ENV SERVER_PASSWORD "secret" ENV SERVER_PORT 2456 ENV WORLD_NAME "Valhalla"
-e SERVER_NAME="My world"-e SERVER_PASSWORD=secret-e WORLD_NAME=Valhalla/home/steam/.config/unity3d/IronGate/Valheim/worlds folder-e TZ=America/PhoenixTZ column. If left unset, timezone will be UTC.--restart unless-stoppedFor quick and easy management via Docker Compose check out https://github.com/PHLAK/valheim-compose
First pull down the latest image:
docker pull phlak/valheim
Remove your running server container:
docker rm -f valheim-server
And run a new one with the same command/arguments as before.
For general help and support join our GitHub Discussions or reach out on Twitter.
Please report bugs to the GitHub Issue Tracker.
This project is licensed under the MIT License.
Valheim copyright by Iron Gate Studios.
Content type
Image
Digest
Size
794.1 MB
Last updated
over 5 years ago
docker pull phlak/valheim