When running podman compose up on Fedora the output is flooded with errors PermissionError: [Errno 13] Permission denied: '/podman_compose/logs/kai_psql.log'.
I have also tried on a couple clean Fedora 40 VM installs with podman and podman-remote/machine and the issue reproduced, so I don't believe it is a system misconfiguration.
There are a few ways to proceed:
More manual steps:
mkdir logs
podman unshare chown 1001:1001 logs
podman compose up
Automated, but will cause problems with git:
Update mounts to :rw,Z,U
But this will break the git repo if you try to fetch updates or do anything else:
$ git fetch upstream
fatal: detected dubious ownership in repository at '/home/jason/Documents/go/src/github.com/konveyor/kai'
To add an exception for this directory, call:
git config --global --add safe.directory /home/jason/Documents/go/src/github.com/konveyor/kai
Improving on 2:
Populate a logs directory in the repo
Add it to .gitignore
Add an additional volume mount - ${PWD}/logs:/podman_compose/logs:rw,z,U
I think unless we get some insight 3 is probably the most seamless approach.
When running
podman compose up
on Fedora the output is flooded with errorsPermissionError: [Errno 13] Permission denied: '/podman_compose/logs/kai_psql.log'
.I opened a podman issue to try to get some insight into why we see a difference with podman(-compose) on Mac and Fedora. https://github.com/containers/podman/issues/23439
I have also tried on a couple clean Fedora 40 VM installs with podman and podman-remote/machine and the issue reproduced, so I don't believe it is a system misconfiguration.
There are a few ways to proceed:
More manual steps:
Automated, but will cause problems with git: Update mounts to
:rw,Z,U
But this will break the git repo if you try to fetch updates or do anything else:
- ${PWD}/logs:/podman_compose/logs:rw,z,U
I think unless we get some insight 3 is probably the most seamless approach.