1 year ago

#357653

test-img

Ruchidnya Kadam

How do I push a docker tar image onto my docker registry using a C++ library or an API

I have a docker tar image built on my server and I want to move it to another machine where docker engine isn't installed. Is there any API I could use or a library I could install through my C++ code that will allow me to use "docker load < image.tar" without having to install docker on my target machine.

I found something similar to what I needed here "https://docs.docker.com/engine/api/v1.41/#operation/ImageLoad". But I believe this too will need me to install docker on my local machine.

Basically I just want a way to push my docker image tarball onto my docker hub cloud registry directly through a C++ code. Or a way to extract layer digest and layer blob from the tar image without having to download docker on my machine.

There are some libraries line crane skopeo and regclient but I don't think I can use them through a C++ code.

Your advice would be most appreciated. Thanks!

docker

docker-machine

docker-registry

0 Answers

Your Answer

Accepted video resources