Remote API (Engine)
Docker Remote API
Docker’s Remote API uses an open schema model. In this model, unknown properties in incoming messages are ignored. Client applications need to take this behavior into account to ensure they do not break when talking to newer Docker daemons.
The API tends to be REST, but for some complex commands, like attach or pull, the HTTP connection is hijacked to transport STDOUT, STDIN, and STDERR.
By default the Docker daemon listens on unix:///var/run/docker.sock
and the client must have root
access to interact with the daemon. If a group named docker
exists on your system, docker
applies ownership of the socket to the group.
To connect to the Docker daemon with cURL you need to use cURL 7.40 or later, as these versions have the --unix-socket
flag available. To run curl
against the deamon on the default socket, use the following:
curl -