Technical Anshu
Tutorials Blog
🐳 Container Data Guide

Synology Container Volumes Where Your Data Actually Lives

Every week someone deletes a misbehaving container on their NAS and deletes six months of app data with it — data they believed was on the NAS. It was: inside a temporary layer that Docker throws away. This guide explains where container data actually lives, and the one mapping habit that makes it live in a real folder instead.

✍️ Technical Anshu🐳 Synology DSM 7⏱️ 10 minute read
🎥 Watch the complete installation in the video — Docker on a Synology NAS, step by step

A container is built to be disposable. You are supposed to be able to delete it and recreate it in minutes — that is the whole point of the design. But an app's data — its database, its settings, your uploads — must never be disposable. Docker solves this with volumes: instructions that say when the app writes to this path inside the container, actually write to that real folder on the NAS. On a Synology, that real folder should be a subfolder of a shared folder — usually the one everyone names docker. Get this right once and every container you run becomes safe to delete, update and recreate.

Inside the container versus a mapped volume
Stored inside the container
App settings, database, uploads in its own layerDELETED WITH CONTAINER
Mapped through a volume
docker/appname on the NAS holds the real filesSURVIVES EVERYTHING
Visible and backable-up in File StationYES
The same app, two fates. The only difference is whether its data path was mapped to a shared folder at creation time.
1

The Two Places Data Can Sit

When an app inside a container saves a file, one of two things happens. If nobody told it otherwise, the file lands in the container's own writable layer — a private scratch space that exists only while that container exists. Delete the container, during an update or a cleanup, and the layer is deleted with it. No recycle bin, no recovery.

If the app's data path is mapped, the same save lands in a real folder on your volume — visible in File Station, included in backups, untouched when the container is deleted. Recreating the container with the same mapping brings the app back exactly as it was, because from the app's point of view nothing was ever lost.

2

How a Volume Mapping Reads

In Container Manager you set mappings when creating a container, under its volume settings. Each line pairs two paths.

  1. The left side is the real folder on the NAS, for example /volume1/docker/jellyfin/config.
  2. The right side is the path inside the container where the app expects its data, for example /config. This comes from the app's own documentation — it is not a guess, and every serious image publishes it.
  3. You will also see named volumes in some guides — data Docker manages under its own hidden area. They work, but on a Synology the shared-folder mapping is the better habit: you can see the files, copy them, and back them up with normal NAS tools.

A typical compose-style mapping for a media app, showing the pattern:

/volume1/docker/jellyfin/config : /config and /volume1/media : /media — settings in the docker folder, media read from the media share.

3

The Folder Layout That Stays Sane

One shared folder, one subfolder per app, boring forever:

This layout pays off on the worst day: when a container must be rebuilt from nothing, its whole world is one known folder.

4

Permissions — The Quiet Cause of Crash Loops

The most common reason a freshly mapped container refuses to start is not the mapping — it is who the app runs as. Many images run as a specific user ID and group ID (often set through PUID and PGID settings in the app's instructions), and if that identity cannot write to your folder, the app crashes, sometimes silently.

  1. Read the image's documentation for the user and group IDs it expects, and set them if it offers the option.
  2. Make sure the mapped folder is writable by that identity. For home use, most people create the app folders while signed in as their normal admin account and keep IDs consistent across all their containers.
  3. If a container loops after a volume change, check the Log tab for permission words — denied, cannot write, read-only — before changing anything else.
5

Moving an App That Was Born Without Volumes

Already running an app that stores data inside its container? It can usually be rescued: stop the container, use File Station or the app's own export feature to copy its data out to a proper folder, then recreate the container with the mapping in place and confirm the app sees its old data. Do it calmly, one app at a time, and keep the old container stopped — not deleted — until the new one proves itself. The deletion test from the first-container guide is your acceptance check.

🔴 The one-sentence version: if you cannot point at the folder in File Station and say the app's data is in there, then the app's data is inside the container — and inside the container means one delete away from gone.

🎥 Watch the Complete Video

The full Docker on Synology NAS installation, shown live on a real NAS from package install to a running container.

▶️ Watch Full Video
❓ Common Questions (FAQ)

I deleted a container and lost its data. Can I get it back?

If the data was stored inside the container's own layer and no volume was mapped, deleting the container deleted the data with it, and there is no recycle bin for it. Your only routes back are a backup of the NAS or the app's own cloud copy if it had one. This is exactly why data must be mapped to a shared folder from the first run.

What is the difference between a volume mapping and a named volume?

A mapping points the container at a real folder you choose on the NAS — visible in File Station and easy to back up. A named volume is storage Docker manages in its own hidden area; it survives container deletion too, but you cannot see or copy the files with normal NAS tools. On a Synology, folder mappings are the clearer, safer habit.

Can two containers share the same folder?

They can, and sometimes should — a downloads app and a media app often share a media folder by design. But two apps writing to the same settings or database folder is asking for corruption. Share data folders deliberately, keep each app's own config folder private to that app.

This guide is based on the Technical Anshu video on installing Docker on a Synology NAS • Stuck on a step? Ask in the video comments 🙏