Closed crosenbe closed 2 months ago
I will assume that when you say "always starts install", you mean it always starts ipa-server-install
.
You might want to use the DEBUG_TRACE
environment variable to 1
to see in more detail what the init-data
does and whether it finds you volume already populated or not.
The logic in https://github.com/freeipa/freeipa-container/blob/master/init-data#L234-L257
if [ -f "$DATA/build-id" ] ; then
[...]
if [ -f /etc/ipa/ca.crt ] ; then
rm -f "$DATA/etc/systemd/system/multi-user.target.wants/ipa-server-configure-first.service"
fi
fi
looks for build-id
and /etc/ipa/ca.crt
files to determine if the data volume already has the FreeIPA installation configured.
I restarted from scratch and it worked now. I assume the naming of the volumes didn't match and i didn't mention that.
OK, thanks for reporting back.
I started the container a first time to configure it and switched to compose later on. Starting the container with "docker run" still works, but not with compose. /data is the same volume, it seems there are no differences.