Skip to content

podman-compose cp command is missing #1315

@filipopo

Description

@filipopo

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

🚀 🌙

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions