I'm having trouble running a FreeIPA docker container on both PhotonOS and Rocky 9. When I try to start the container using the command: `docker run --name freeipa-server --privileged --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /srv/freeipa-data:/data -h ipa.example.test -e IPA_SERVER_IP=192.168.0.36 -ti freeipa/freeipa-server:rocky-9`, I keep getting this output:
`Using stored hostname ipa.home.lab, ignoring .`
`Detected virtualization container-other.`
`Failed to create /init.scope control group: Read-only file system`
`Exiting PID 1...`
It seems like the filesystem is read-only and that's causing the failure. Does anyone have any advice on how to fix this? Any help is appreciated!
4 Answers
Have you tried running other Docker images, like Nginx? If those work fine, then the issue is likely specific to the FreeIPA image. It’d be best to reach out to the creators of that image for support.
If all else fails, consider just installing FreeIPA in a VM instead of using Docker. It might circumvent these issues entirely!
I tried that, but I hit a different error when logging in as admin. Seems like I’m just cursed with errors today!
You might want to check your volume settings. When I set up FreeIPA last, I remember having to configure an external volume and create an initial configuration file to kick it off. If I can find my notes, I may have some steps that could help. You can also pass options as environment variables, which might simplify things for you.
It looks like your issue stems from the filesystem being read-only, which prevents the image from creating necessary objects like init.scope. Unfortunately, I can't provide much support for specific images. You might want to check out discussions on FreeIPA's GitHub or forums focused on that project for more targeted help. Might be your best bet!
Yeah, I think that's a solid idea. I'll start searching for installation guides or forums discussing this specific container.
Good point! I'll reach out to them for more specific guidance.