I’m trying to migrate to rootless mode in Podman (ie running Sonarqube’s container with a non-root user) but I’m getting the following error while starting it for the second time (it works well on the first time):
I’m trying to migrate to rootless mode in Podman (ie running Sonarqube’s container with a non-root user)
Unfortunately, we don’t support Podman yet and, at the moment, we cannot really provide a timeline for this. However, we want to remind you that our latest SonarQube containers run without a root user. Do you have specific needs for preferring Podman over Docker as container runtime? It would be very valuable for us to know more about your use case
I’m getting the following error while starting it for the second time (it works well on the first time):
You are right, we were able to reproduce this issue: with Podman, we faced the same error when running the container the second time and reusing the volumes. However, a few interesting points for you:
when using Docker as the container runtime, the issue does not occur. You would not face any file-permission-related errors.
if you strictly need to use Podman, the issue does not occur when using the latest SonarQube image (i.e., sonarqube:10-community)
Can you try one of those solutions? Do they work for you?