You need to make sure to define volumes in your docker container so you don't lose any data during reboots.
Example of something to add to your Dockerfile that would keep your home files.
VOLUME ["/home/"]
Define volumes in your docker containers
Moderator: EvrSteward
-
shwarzlazlo91
- Posts: 1
- Joined: Thu Nov 19, 2026 12:22 am
Re: Define volumes in your docker containers
yeah volumes in the dockerfile are a start but docker compose is the way to go for defining them properly in the yaml so everything stays consistent across containers https://newscrawler.org/en/e/docker-compose-defining-running-multi-container-applications/ i switched over and dont lose anything on reboot now.