Freeradius in Docker
Alan DeKok
aland at deployingradius.com
Mon Jun 30 10:59:57 UTC 2025
On Jun 30, 2025, at 2:39 AM, Kat via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
> I would like some data persistence in my Freeradius Docker container so I would like to add a volume of some kind (eg. bind mount) to persist the data.
>
> Which folders in the container can I safely choose to do this? I have experienced difficulties with some folders as others also appear to have experience the same thing (https://stackoverflow.com/questions/64105419/how-to-run-freeradius-using-docker-compose).
This is a docker issue, and not a FreeRADIUS issue. Docker has problems with symlinks and mounts.
> How can I have data persistence with configuration files and certificates?
The configuration files can be edited.
The default configuration of the server includes an enormous amount of files. But not all of them are needed in your local setup.
If you're trying to mount your local configuration as a volume into Docker, you can edit the configuration to use only the files you need. This involves carefully removing anything which you don't need, and replacing symlinks with the actual files.
Alan DeKok.
More information about the Freeradius-Users
mailing list