Description
Describe the bug
When running rootless - docker / podman compose up, mongo hits permission issues on chown if container not started as user: mongodb
To Reproduce
podman compose up
Expected behavior
no errors
Logs
podman compose up
Executing external compose provider "/usr/local/bin/docker-compose". Please see podman-compose(1) for how to disable this message. <<<<
[+] Running 2/2
✔ Container registry-mongodb-1 Recreated 0.0s
✔ Container registry Created 0.0s
Attaching to registry, mongodb-1
mongodb-1 | chown: changing ownership of '/proc/1/fd/1': Permission denied
mongodb-1 | chown: changing ownership of '/proc/1/fd/2': Permission denied
**Additional context - FIX **
mongodb:
image: mongo
user: mongodb
container_name: mongodb