0

Anybody know about, How to copy files from host machine to docker container using docker API?

or Anyone knows, How to use this API? -> https://docs.docker.com/engine/api/v1.41/#operation/PutContainerArchive In which format I have to upload the files using this API?

Manoj M
  • 19
  • 4
  • The Docker API link you sent says "tar archive" in a couple of places. Do you _need_ to send files to a container's temporary file system? Can you use a Docker SDK, instead of directly talking to the HTTP API? Do you have any existing code you can share? – David Maze Apr 19 '21 at 12:40
  • @DavidMaze is there any official SDK for java from Docker? – Manoj M Apr 20 '21 at 04:43
  • [Develop with Docker Engine SDKs](https://docs.docker.com/engine/api/sdk/) includes the two official SDKs (in Go and Python) and also links to community ones in many languages. – David Maze Apr 20 '21 at 09:54

0 Answers0