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

`podman-compose cp` command is missing

Open filipopo opened this issue 3 months ago • 0 comments

Is your feature request related to a problem? Please describe.

docker-compose cp can copy files/folders between a service container and the local filesystem

podman-compose seems to not have this command implemented.

$ podman-compose cp
...
podman-compose: error: argument command: invalid choice: 'cp' (choose from 'help', 'version', 'wait', 'systemd', 'pull', 'push', 'build', 'up', 'down', 'ps', 'run', 'exec', 'start', 'stop', 'restart', 'logs', 'config', 'port', 'pause', 'unpause', 'kill', 'stats', 'images')

I run scripts like this and it would be good to have this functionality in Podman

tar -czh ./data | docker compose cp - container:/tmp

Describe the solution you'd like

Let podman-compose cp do the same thing.

Describe alternatives you've considered

Since podman by itself does have a cp command, it's not impossible to add the service container prefix (and suffix) with something like this but it's not a very managed solution

tar -czh ./data | podman cp - ${PROJECT_NAME}-container-1:/tmp

Additional context

🚀 🌙

filipopo avatar Sep 26 '25 10:09 filipopo