Replies: 1 comment 3 replies
-
For your first two questions - what exactly is the ask here? Implement these options in For your third question - would the For your fourth question, please see #10539. For your fifth - we're still evaluating right now. Last I checked, Compose v2 was still experimental, so we're not terribly concerned yet. The project being in Go does offer some potentially exciting options (vendoring the Compose code into Podman itself to offer a |
Beta Was this translation helpful? Give feedback.
-
I am glad that Podman now supports docker-compose for both rootful and rootless containers! However, there are a couple missing features and compatibility issues that make it difficult for me to use docker-compose to manage Podman containers. I'm not sure what the process is for resolving these issues upstream. Is it even possible to implement Podman specific features, given that docker-compose uses the Docker Python api? Also, I'm not sure how willing the docker-compose developers are to cater to Podman.
It would be awesome if we could fix this! Let me know if I should file a formal bug report. In the meantime, here are the issues I found:
The
--systemd=true|false|always
option is not implemented.It is not possible to specify
--userns
options, such as--userns keep-id
. Running containers with--userns keep=-id
and--user "$(id -u):$(id -g)"
is the best way I've found to allow the user who creates a rootless container to access files in a bind mount withoutpodman unshare
or setting--user=root
.docker-compose cannot build images using Podman. Please see this issue for more info.
Containers managed through docker-compose do not restart on boot. I assume the recommended solution is to create a Systemd unit that runs
docker-compose up
at startup. This is a clunky solution, in my opinion. It would be better if restarting containers on boot was handled automatically. Would it be possible to implement a seperate Systemd service that starts containers at boot, as @rhatdan suggested in this issue? Thecontainers.podman.podman_container
Ansible module is not able to create containers that start at boot, either. (It does not support creating systemd units.) Implementing this feature would solve both problems.Docker will soon release "Compose v2" which is written in Go and has a different architecture than the current iteration. The plan is for this to replace the current python-based docker-compose project. How will this effect Podman?
Thanks,
Maxwell
Beta Was this translation helpful? Give feedback.
All reactions