I'm running a compose.yml file with Podman's CLI emulation for Docker Compose. The first time works okay, but the second time I need to start up containers, the permissions are wrong. Some MySQL database files in a Volume are owned by a non-root user that isn't my own user. I run the containers without root as my own user.
Normally, the suggested solution is to run --userns=keep-id, but this isn't a valid option with the CLI emulation.
Is there anything I can do here?
Steps to reproduce the issue
Steps to reproduce the issue
Use image: docker.io/mysql:8.0
Start up the container and let it run for a while.
Some time afterward, try to startup the container again.
Describe the results you received
It won't start the container because it can't read files from the volume as it's the wrong user.
Describe the results you expected
The container will start up and there won't be permissions problems.
Issue Description
I'm running a compose.yml file with Podman's CLI emulation for Docker Compose. The first time works okay, but the second time I need to start up containers, the permissions are wrong. Some MySQL database files in a Volume are owned by a non-root user that isn't my own user. I run the containers without root as my own user.
Normally, the suggested solution is to run
--userns=keep-id
, but this isn't a valid option with the CLI emulation.Is there anything I can do here?
Steps to reproduce the issue
Steps to reproduce the issue
image: docker.io/mysql:8.0
Describe the results you received
It won't start the container because it can't read files from the volume as it's the wrong user.
Describe the results you expected
The container will start up and there won't be permissions problems.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Arch Linux.
This has been going on for several months and through several versions.
Additional information
Doesn't happen with Docker.