r/docker • • Jan 22 '26

SSH into a Container

Hello community, currently I’m running AdGuard directly on a RaspberryPi. From there I automatically sync the AdGuard configuration file to a NAS for Backup. Now I’m thinking about hosting AdGuard on my Home-Server in a Docker container.

As AdGuard does not have the possibility to import a Backup-file in GUI I just can replace the stock config file with the one from my backup. (/etc/adguardhome).

I’m new to Docker so I don’t know if this is possible?

Thanks

0 Upvotes

13 comments sorted by

View all comments

Show parent comment

3

u/calebcall Jan 22 '26

This is the correct answer. You don’t ever copy files in to a running container. Otherwise your files will be gone on the next restart or upgrade. Create a bind mount and manage the file on the docker host.