Call Docker API without docker daemon
I was wondering is there a way to make a call to Docker API without
I went through their docs and a little bit of source code behind Docker CLI and couldn’t find an answer.
I want to make a HTTP/HTTPS call to Docker API directly! I don’t want to install
docker CLI. Is this somehow possible and can you give an example?
I want to make Docker Registry API call without having to install
docker to test credentials, which I would later use for
docker login command.
One Solution collect form web for “Call Docker API without docker daemon”
I think your question is a little confused. You can’t make a call to the Docker API without the Docker daemon because the API is the daemon (or at least, the daemon exposes the API).
You can of course make requests to (control) the API / daemon without the Docker client though. Simply fire your requests at the socket (unix:///var/run/docker.sock) directly. Or if you want to expose it as HTTP(S recommended) then you can do this by altering the daemon startup options and instead send request over HTTP(S) to that address.