Unraid Docker image filling up? Find what is growing
gist Find the growing storage category, correct app write paths and check log limits before increasing docker.img capacity.
You stopped about in. Jump back
contents
If your Unraid Docker image keeps filling up, identify the growing storage category and check app write paths and log limits before adding capacity.
Jellyfin, Audiobookshelf and Homebridge are among the containers I use daily on my Unraid box.
You need access to the Unraid WebGUI and terminal. Confirm that Docker storage uses docker.img. Before changing containers, have saved templates and a current, verified backup of their persistent data.
Step 1: Separate Docker usage from pool usage
Check Docker image usage and free space on the pool holding it. These are separate limits. Free space inside docker.img does not tell you how much space remains on the underlying pool. Increasing the image’s capacity also requires room on that pool. If the pool itself is the problem, see how to stop an Unraid cache pool filling up. Unraid Docker troubleshooting.
Inspect storage usage:
docker system df -v
docker ps --size
docker system df -v reports detailed image, container and local-volume usage. Look at shared and unique image sizes. Adding every image’s total size can count shared layers more than once. Docker disk usage reference.
docker ps --size lists running containers. Docker’s reference describes the first size as the data in each container’s writable layer. The parenthesized virtual size includes image layers too. For stopped containers, check the Containers section of the verbose disk report. Docker container listing.
Docker’s storage documentation notes that container sizes leave out log files, mounted volumes and some metadata. Small writable layers do not mean Docker storage is empty. Docker storage accounting.
| Storage category | What to check |
|---|---|
| Image layers | Large images and old images no container needs. Some layers are shared. |
| Writable container layers | Files written outside persistent mounts. Compare sizes over time. |
| Docker logs | Logging driver, rotation limits and repeated app errors. |
| Docker-managed volumes | Data managed by Docker. Check the storage location and container using it. |
| Host bind mounts | Files mapped to host directories. These use space at their host destination. |
| Underlying pool | Free space for docker.img, mapped data and other files on that pool. |
Step 2: Find writes outside your mappings
Start with a container whose writable layer is growing. Compare its app settings with its Unraid container template.
Compare:
- Where the app actually writes files.
- The container destination covered by the mount.
- The host directory receiving those files.
An app writing to /downloads needs a mount covering that path. Mapping another container directory will not redirect those writes.
A bind mount connects a host directory to a container destination. Adding one over an existing directory hides the files already there. Preserve needed files before changing the mapping. Docker bind mounts.
If an app is rapidly filling storage, stop its container. Before applying changes:
- Check its data, cache, export and temporary-file destinations.
- Save needed files from its writable layer.
- Correct the app destination and matching host mapping.
- Confirm that the host directory exists and permits writes.
- Verify backups, saved settings and network configuration before recreating the container.
A mapping redirects future writes. It does not move existing files. After restarting the app, check that new files appear at the intended host destination and that writable-layer growth has stopped.
For permission errors at the new destination, follow Docker file permissions on Unraid.
Step 3: Check log rotation and local volumes
If writable layers are small, inspect the affected container’s logging driver and effective logging options.
For json-file, max-size defaults to unlimited. Set a size limit to enable rotation. max-file limits retained files only when max-size is also set. Check repeated errors too, since rotation limits storage but does not fix the app error.
Changing Docker daemon defaults requires a Docker restart. Those defaults apply to newly created containers. Existing containers must be recreated to adopt them. Verify data backups and saved settings first. Docker manages its log files, so avoid external editing or truncation. Docker JSON File logging driver.
Next, check Local Volumes in the disk report. Volumes persist after a container is removed. Ordinary Docker-managed local volumes use Docker’s storage directory, which can place their data inside docker.img on an image-based Unraid setup. Check the volume’s driver and location before deciding where its data lives. Docker volumes.
Identify each volume’s contents and purpose before considering removal. An unused volume may still hold needed data.
Step 4: Choose the fix that matches the growth
| Option | When it fits | What to remember |
|---|---|---|
| Correct missing or wrong mappings | App data is growing in a writable layer. | Preserve existing files before changing mounts. |
| Remove specific unused images | Old images account for space and are no longer needed. | This will not stop app writes or log growth. |
| Configure log rotation | Docker logs grow without a useful limit. | Recreate existing containers to adopt changed daemon defaults. |
| Increase Docker storage | Expected usage needs more capacity after diagnosis. | The underlying pool must have enough free space. |
Review individual unused images before removing them. Broad pruning is a poor first step. By default, docker system prune removes stopped containers, unused networks, dangling images and unused build cache. Its options can widen that removal, including anonymous volumes. Docker prune reference.
After correcting the cause, compare usage during normal app activity. Check the affected category, overall image usage and pool free space. Increase capacity only when you can explain the remaining storage needs.
Step 5: Prepare before recreating docker.img
Recreation is an option for a damaged image. Before deleting it, verify:
- A current, readable appdata backup made using each app’s backup guidance. What to back up for Unraid Docker apps covers the list.
- Separate backups of needed data in writable layers and Docker-managed volumes.
- Host mappings, permissions and saved container settings.
- Custom network definitions and which containers use them.
- Saved templates available through Apps → Previous Apps.
Unraid’s documented process disables Docker, deletes and recreates the image, then reinstalls containers from Previous Apps. Templates save container configuration. They do not back up app files. Custom networks are lost when the image is deleted and must be recreated. Unraid recreation and reinstall instructions.
Correct unintended writes before rebuilding. After reinstalling, check app data, host mappings, network connections and storage growth.
Common questions
Why does my Unraid Docker image keep filling up?
The containers you already run write files, logs and volume data. Find the growing category, then check that app’s write destinations and logging settings.
Why does docker ps show small sizes when docker.img is full?
Its size figures exclude logs, mounted data and some metadata. Virtual sizes include shared image layers, so adding them together can overcount usage. Docker storage accounting.
Will increasing docker.img fix the problem?
It provides more capacity if the pool has room. It does not fix a wrong write path or unlimited logs. Find the cause first.
Does adding a host mapping move existing container data?
No. It redirects future writes and can hide existing files at the container destination. Preserve those files before applying the mapping. Docker bind-mount behavior.
Can I delete docker.img without losing app settings?
App files inside the image are lost when it is deleted. Verify that needed data is stored outside it or has a usable backup. Previous Apps templates restore configuration, not deleted app data. Unraid Docker recovery.
For permission problems after changing a mount, read Docker file permissions on Unraid. If Metabase cannot reach its database after recreating containers or networks, follow Metabase and Postgres connection checks.
../unraid/ every Unraid + Docker guide