Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install docker client only without docker engine

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

like image 459
112Legion Avatar asked Aug 07 '26 16:08

112Legion


1 Answers

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)

like image 50
Monsieur Merso Avatar answered Aug 09 '26 06:08

Monsieur Merso



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!