podman-compose icon indicating copy to clipboard operation
podman-compose copied to clipboard

Get command without docker-compose labels?

Open cronyakatsuki opened this issue 10 months ago • 4 comments

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?

cronyakatsuki avatar Apr 10 '24 07:04 cronyakatsuki

@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.

p12tic avatar May 01 '24 18:05 p12tic

@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.

cronyakatsuki avatar May 01 '24 18:05 cronyakatsuki

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

p12tic avatar May 04 '24 15:05 p12tic

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.

cronyakatsuki avatar May 05 '24 06:05 cronyakatsuki