I want to write a script which going to use docker API. It will communicate with the docker engine which runs on the host machine. I don't wanna install the entire docker to my image just CLI and later use the host network to communicate with the docker engine.
My script under the hood gonna run commands like docker image inspect someiamge
You can use binary distribution of docker, which can be downloaded from here, you can get docker client binaries there.
Here is the documentation of installation of a docker from binaries. Just skip part of starting docker engine and make sure that your docker client points to a correct remote engine (mounting /var/run/docker.sock)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With