containers / podman-compose

a script to run docker-compose.yml using podman
GNU General Public License v2.0
4.86k stars 465 forks source link

Get command without docker-compose labels? #910

Open cronyakatsuki opened 2 months ago

cronyakatsuki commented 2 months ago

Hello, is there any way to get pure podman run command, without the docker-compose specific commands?

I would like to move away from using docker-compose and thought podman-compose would be able to extract the pure commands without docker-compose specific labels that podman-compose adds.

Is there any way?

p12tic commented 2 months ago

@cronyakatsuki Could you explain a bit more why would you need such feature for? It doesn't seem that the additional docker compose labels could be harmful to anything, they just use few bytes of space and that's all.

cronyakatsuki commented 2 months ago

@cronyakatsuki Could you explain a bit more why would you need such feature for? It doesn't seem that the additional docker compose labels could be harmful to anything, they just use few bytes of space and that's all.

I mostly just wan't to move completely away from docker, meaning also docker-compose.

I also accidentally didn't realize that using podman generate on a podman-compose pods won't create right systemd files and that also left me scratching my head after a restart of one of my systems.

It's mostly about just being able to get pure command, also to learn how podman itself works cause I think having it be able to show direct commands would allow people to learn how to setup complex pods with pure podman commands would be a great learning point.

p12tic commented 2 months ago

Adding --verbose to podman-compose command line will print all commands that podman-compose is invoking. Please let me know if that's enough.

cronyakatsuki commented 2 months ago

Adding --verbose to podman-compose command line will print all commands that podman-compose is invoking. Please let me know if that's enough.

Yes it's enough, tnx for listening to my request.