Game Hosting home

7 Days to Die Dedicated Server in Docker: Save Your World

Run a 7 Days to Die dedicated server in Docker, keep its world in persistent volumes, choose a current branch, and test your backup before updates.

Difficulty
HardDifficulty Hard
Time to do
45 min
Reading
10 min
Updated
By
Game Hosting team

You will need

  • A Linux host or NAS that supports Docker Engine and Docker Compose
  • At least 25 GB free for the dedicated-server install, plus space for maps and backups
  • Router and firewall access if players will connect from outside your home network

A 7 Days to Die dedicated server in Docker fits a home lab or NAS when you already manage containers and want the world to survive image updates. The important part is the storage map: the container can be replaced; your save, generated world and server configuration must live in persistent storage. This guide compares two community images, builds a Compose project, pins the game branch, and tests a backup copy. It does not treat a successful server process as proof that a player outside your network can connect.

If you’d rather leave Docker, Steam branches and volume snapshots to a game panel, Game Hosting’s 7 Days to Die service includes settings, scheduled tasks and three backup slots you can restore, download or lock. Those panel backups are separate from the Docker volume snapshots below.

Choose an image whose update path you understand#

There is no official 7 Days to Die server image listed by The Fun Pimps. You choose a community project, so inspect its current repository and Docker Hub tags before pulling it. As checked November 3, 2026, these projects differ in how much they automate:

Image Documented approach Check before you use it
vinanrra/7dtd-server LinuxGSM in Docker, a VERSION setting, optional backups, monitoring and mod installers Its public repo was updated October 18, 2026. Its docs mention sdtdserver.xml; V3.0 changed game difficulty to SandboxCode, so do not paste an old settings guide into a current server.
didstopia/7dtd-server Mounts server files and game data separately; exposes branch, startup-mode and update-check options Its latest public Git commit was May 26, 2026. Confirm its current image behavior against the version you plan to run.
Renegade-Master’s image Small Compose example with environment variables for version and ports Its latest public commit was January 22, 2022, so it is not a current-version recommendation.

These are community-maintained images, not guarantees of compatibility with every game build, mod or NAS processor. I use vinanrra/7dtd-server for the example because its docs expose the LinuxGSM branch variable and separate storage locations. The test in this guide is pinned to the image’s latest tag as it existed on November 3; latest can change, so record the digest shown by your own docker image inspect and consider pinning a reviewed digest for routine updates.

Before choosing, ask four practical questions: does the image identify the exact branch variable, where does it write saves and configuration, how does it update the container versus the game server, and can you back up those paths without archiving every game binary? If a README only says “persistent,” find the actual mount targets. A container can restart perfectly while your world remains trapped in its writable layer.

Create persistent storage and publish only game ports#

Docker Compose named volumes are a simple starting point on Linux. The image’s current parameter guide maps game data to /home/sdtdserver/.local/share/7DaysToDie/, server files to /home/sdtdserver/serverfiles/, LinuxGSM configuration to /home/sdtdserver/lgsm/config-lgsm/sdtdserver/, and logs to /home/sdtdserver/log/. Keep each mount as a distinct volume so you can identify what a backup contains. For what the server’s config, world and admin files do inside those mounts, use our 7 Days to Die server-file map.

Create a project directory, save this as compose.yaml, and change the UID and GID to the account that will own files on your host:

yaml
services:
  server:
    image: vinanrra/7dtd-server:latest
    environment:
      VERSION: stable
      START_MODE: '0'
      PUID: '1000'
      PGID: '1000'
      TimeZone: America/Chicago
      MONITOR: 'NO'
      BACKUP: 'NO'
    volumes:
      - steam-cache:/home/sdtdserver/.local/share/Steam/
      - game-data:/home/sdtdserver/.local/share/7DaysToDie/
      - server-files:/home/sdtdserver/serverfiles/
      - lgsm-config:/home/sdtdserver/lgsm/config-lgsm/sdtdserver/
      - logs:/home/sdtdserver/log/
      - backups:/home/sdtdserver/lgsm/backup/
    ports:
      - '26900:26900/tcp'
      - '26900:26900/udp'
      - '26901:26901/udp'
      - '26902:26902/udp'
      - '26903:26903/udp'
    restart: unless-stopped

volumes:
  steam-cache:
  game-data:
  server-files:
  lgsm-config:
  logs:
  backups:

For the default game port, The Fun Pimps’ support reference lists TCP 26900 and UDP 26900–26903. The core game traffic uses 26900–26902; forwarding UDP 26903 is a cautious compatibility choice because the support table says leaving it closed can block some joins. The Compose file deliberately leaves the web dashboard (8080), telnet (8081) and optional map service (8082) unpublished. Do not publish admin ports to the internet as a shortcut.

Check the expanded configuration before starting. Docker should report one service and six named volumes; if Compose says a volume is a bind mount, you have a host path instead and should confirm it points to the intended directory.

bash
id
docker compose config

Install the server and record its branch#

The image uses LinuxGSM to install Steam app 294420. In the sample, START_MODE: '0' installs the server and stops before launching it. After the files finish downloading, switch the mode to '1' and start the service. The image documents VERSION=stable and named branch values; confirm the dedicated-server branch in Steam before selecting one.

bash
docker compose up -d
docker compose logs -f server

On November 3, 2026, the dedicated-server branch snapshot showed public and v3.4.0 at build 26310339; it did not list latest_experimental. A branch name for the client is not proof the dedicated-server app exposes that branch. Record the branch and build in your notes, and check The Fun Pimps’ current news and Steam’s branch list again before updates. Players need a compatible game version.

The image writes its server configuration under the mounted server-files directory. V3.0 replaced many older difficulty properties with the SandboxCode value. Do not follow old instructions to tune removed XPMultiplier, BloodMoon* or loot properties: on current builds those entries can be ignored. Inspect the configuration generated by your selected game build and use a current V3 settings reference. An image’s ability to mount XML does not make an old XML recipe current.

Wait for the container log to show LinuxGSM has finished installation before changing START_MODE. A SteamCMD Missing configuration error means the server files have not installed, even if Compose reports the container as running. In the November 3 test, the first bind-mount and named-volume installs hit that error. Refreshing AppID 294420 metadata in an isolated Steam cache let SteamCMD download build 26310339 and the server start. Keep the refresh and SteamCMD content logs if the error returns; do not invite players to an empty or partially installed directory.

Update the game branch without trusting an old save#

Updating the Docker image and updating 7 Days to Die are separate operations. docker compose pull fetches a newer container image. The VERSION environment variable selects the game branch for LinuxGSM. The vinanrra project also documents START_MODE=2 to update and stop, and START_MODE=3 to update and start; its parameter guide warns you to back up before switching between stable and experimental.

Make one controlled branch change on a disposable server before changing a world your group cares about. The test on this date changed Didstopia’s SEVEN_DAYS_TO_DIE_BRANCH from public to v3.4.0; SteamCMD verified AppID 294420 and the server started on the restored copy. The branch snapshot showed both names at build 26310339, so this tested the image’s branch-selection flow, not a game-version upgrade. The vinanrra/7dtd-server image documents START_MODE=3 for update-and-start, but the pulled digest in this test stopped with fn_script_log_pass: command not found during that mode. Do not assume that update mode works in every current tag; test it on a disposable copy first. For Didstopia, set the branch and start mode in the service environment, recreate the container, then inspect the log:

  1. Stop and copy the current world

    Stop the service and create a dated archive of the game data, server files and LinuxGSM config volumes. Keep the original archive outside the Docker volumes, then verify it is not empty.

    bash
    docker compose stop server
  2. Choose a branch Steam lists for the server app

    For Didstopia, set SEVEN_DAYS_TO_DIE_BRANCH to a branch listed for AppID 294420; its START_MODE=0 updates and starts. For vinanrra, VERSION selects the branch and START_MODE=3 is documented, but the tested image digest failed as described above.

    yaml
    environment:
      SEVEN_DAYS_TO_DIE_BRANCH: v3.4.0
      SEVEN_DAYS_TO_DIE_START_MODE: '0'

    Recreate and inspect the service logs:

    bash
    docker compose up -d --force-recreate server
    docker compose logs -f server
  3. Confirm the build and configuration

    Read the SteamCMD and game-server logs, record the installed build, and check the generated server configuration. If SteamCMD reports an error or the server exits, stop here and restore the disposable copy before inviting anyone.

Do not treat a branch switch as a save-compatibility guarantee. The tested public and v3.4.0 names pointed to the same recorded build, and this did not test an upgrade or rollback between different builds. It also does not establish that every world, overhaul or mod can move backward or forward without changes. For modded worlds, check the mod author’s current release and required client files first. The 7 Days to Die server-mod guide covers server-side and player-side files; this Docker walkthrough does not test a third-party mod.

Back up mounted data and test a fresh container#

The server-data volume is the minimum world backup, but first inspect its contents. This image may keep generated files in server-files as well, so include the active save, map data and configuration your logs show. Leave the server stopped while making a file-level copy; copying a live world can capture it halfway through a save.

For named volumes, a one-shot Alpine container can create an archive without putting backup commands inside the game image. Replace 7dtd_game-data with the actual Compose project-prefixed volume name from docker volume ls:

bash
mkdir -p backup
docker compose stop server
docker run --rm \
  -v 7dtd_game-data:/source:ro \
  -v "$PWD/backup:/backup" \
  alpine:3.22 sh -c 'tar -czf /backup/game-data.tar.gz -C /source .'
tar -tzf backup/game-data.tar.gz | head

An archive listing proves it contains files; it does not prove the game can load them. Create a second empty named volume, extract the archive there, and point a disposable Compose project at that restored volume. Start the copy and check the server log for world-load errors before you rely on that backup. Keep the original volume untouched until the restored copy passes.

In the verification run for this guide, the server was stopped before the copy. I archived its game-data volume, extracted it into a separate named volume, and compared SHA-256 manifests: all 62 save files matched. A newly created container mounted that restored volume, loaded the Navezgane world and reached StartGame done and GameServer.LogOn successful. This tests a disposable generated world and a file-level volume archive; it does not test a real group’s save, a scheduled backup or a player joining from outside the host.

Check the container before opening your network#

The log line GameServer.LogOn successful shows the dedicated server registered with Steam’s server API. It does not prove your router forwarded traffic or that a friend can reach the host. If remote play is the goal, match your router and host firewall to the published game ports, then test from a separate network. Do not expose telnet or the dashboard while debugging.

If the install stops at Missing configuration, the container may still appear “running” while its server files are absent. Check docker compose logs, the SteamCMD content log and AppID 294420’s current branch metadata. If a Steam app-info refresh still fails, preserve the logs and stop repeating the same install command; that is a Steam metadata or image-startup issue to resolve before you trust the container.

For a group that would rather not maintain Linux, image tags, branches and volume backups, the managed 7 Days to Die panel puts settings and scheduled backups in one place. If you want to stay self-hosted but skip Docker, compare it with a LinuxGSM setup or the plain Linux dedicated-server route. Keep one verified archive outside the host either way.

Quest complete

Before you invite your friends, check that the intended world loaded and that each player can connect. If those checks pass, you're ready for a session; if you'd rather not keep a PC on, that's what we're here for.

Quick answers

Is there an official 7 Days to Die Docker image?

No official image was listed by The Fun Pimps when checked on November 3, 2026. Community images wrap the dedicated-server files, so check the repository, image tag, branch behavior and storage paths before you trust one with a world.

How do I keep my 7 Days to Die world when I update a Docker image?

Mount the game data and server files outside the replaceable container, stop the server, and make a separate archive before changing the image or game branch. Test an extracted copy on a fresh container.

Can I run a 7 Days to Die Docker server on a NAS?

Yes, if the NAS can run the image’s Linux architecture and has enough memory, storage and upload bandwidth. The container does not remove the host’s CPU, network, backup or update work.

Can a Docker 7 Days to Die server switch to the experimental branch?

Only when Steam lists a current experimental branch for the dedicated-server AppID and the chosen image can install it. On November 3, 2026, the Steam branch snapshot checked here listed public and v3.4.0, but not latest_experimental.