fussybeaver / bollard

Docker daemon API in Rust
Apache License 2.0
911 stars 134 forks source link

Copy files into a created (but non startd) container #463

Closed guenhter closed 2 months ago

guenhter commented 2 months ago

It would be very nice to support something like this:

docker container create --name foo nginx
docker container cp somefile foo:/tmp/
docker container start foo

So basically to copy files to a created but not started container.

guenhter commented 2 months ago

Never mind. Found it. upload_to_container was the missing part.