A docker.img that creeps toward 100% usually isn’t about big images, and I’d bet on a single container writing somewhere it shouldn’t. Since I run Unraid with a long list of containers myself, this is the first thing I’d check before making the image bigger or recreating it.
Open the terminal in Unraid and run:
docker system df -v
The verbose output lists images, containers and volumes with their size. Look at the volumes section: a pile of volumes with LINKS 0 looks like leftovers that no container uses. To list just the unused ones:
docker volume ls -qf dangling=true
Where do they come from? On the Unraid forums, texas1880 traced a 159 GB docker.img to the Prometheus template. It mapped a host folder to /prometheus/data, but the image keeps its data in /prometheus. Docker quietly made an anonymous volume for the real data, and every update left another one behind: 85 dangling volumes in the end. After moving the data to appdata and removing the verified leftovers, usage dropped to about 34 GB. The mapping mistake can be as small as a missing slash, as other forum answers point out.
So the fix is in the container’s path mapping. Compare the container’s volumes with what the app really writes:
docker inspect <container> --format '{{json .Mounts}}'
One caveat, and I would take it seriously: do not run docker volume prune or docker system prune --volumes as a quick fix. A dangling volume can still hold the only copy of someone’s database, and removal is permanent. Inspect each volume first (docker volume inspect), copy out what you need, and remove them one at a time with docker volume rm. The poster also noticed that far more space came back than the visible files explained, and could not say why, so don’t expect exact numbers.
Further reading: Docker docs: docker volume ls, Docker docs: docker system df, On this site: use Previous Apps to bring back every container after deleting docker.img, On this site: Docker data-root can be a directory instead of a docker.img vDisk