You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while my basic setup works without any issue on Windows Docker Desktop, I cannot get it up and running on rhel with rootless Podman. I think I tried everything I and chapGPT could think of, but nothing worked.
Starting it from / with podman compose -f docker/compose.yaml up -d and then ... compose ... logs gives:
1720531735: Warning: File /mosquitto/data/mosquitto.db has world readable permissions. Future versions will refuse to load this file.
To fix this, use `chmod 0700 /mosquitto/data/mosquitto.db`.
1720531735: Warning: File /mosquitto/data/mosquitto.db owner is not mosquitto. Future versions will refuse to load this file.To fix this, use `chown mosquitto /mosquitto/data/mosquitto.db`.
1720531735: Warning: File /mosquitto/data/mosquitto.db group is not mosquitto. Future versions will refuse to load this file.
1720531735: Warning: Persistence file is empty.
1720531735: Error: Unable to open log file /mosquitto/logs/mosquitto.log for writing.
I tried setting up every possible combination. I even created the user 'mosquitto' on the local machine, so that I could set the ownership directly to that on the local, so: id mosquitto -> $ id mosquitto uid=1883(mosquitto) gid=1883(mosquitto) groups=1883(mosquitto)
When I apply this ownership to the entire /mosquitto directory ls -la mosquitto:
So it seems like the ownership is not propagated into the container or something. But honestly, my knowledge of container, linux, podman, etc. ends right here. I don't know what is going wrong, nor how to diagnose.
Again, if I run the same command (oh well "docker" instead of "podman") on my local machine, it just works.
I humbly beg for help :)
The text was updated successfully, but these errors were encountered:
Since you're running RHEL, I assume SELinux i also configured and active on your machine.
If that is the case, you have to modify the context for the container:
Hello,
while my basic setup works without any issue on Windows Docker Desktop, I cannot get it up and running on rhel with rootless Podman. I think I tried everything I and chapGPT could think of, but nothing worked.
Project structure:
conf file
The issue is with file permissions. I map local files to the container:
Starting it from / with
podman compose -f docker/compose.yaml up -d
and then... compose ... logs
gives:I tried setting up every possible combination. I even created the user 'mosquitto' on the local machine, so that I could set the ownership directly to that on the local, so:
id mosquitto
->$ id mosquitto uid=1883(mosquitto) gid=1883(mosquitto) groups=1883(mosquitto)
When I apply this ownership to the entire /mosquitto directory
ls -la mosquitto
:Then compose down and up -d again -> still the same issue. When I exec into the container directly, this is output for ls -la:
So it seems like the ownership is not propagated into the container or something. But honestly, my knowledge of container, linux, podman, etc. ends right here. I don't know what is going wrong, nor how to diagnose.
Again, if I run the same command (oh well "docker" instead of "podman") on my local machine, it just works.
I humbly beg for help :)
The text was updated successfully, but these errors were encountered: