Remote API v1.18 (Engine)
Docker Remote API v1.18
1. Brief introduction
- The Remote API has replaced
rcli
. - The daemon listens on
unix:///var/run/docker.sock
but you can Bind Docker to another host/port or a Unix socket. - The API tends to be REST, but for some complex commands, like
attach
orpull
, the HTTP connection is hijacked to transportSTDOUT
,STDIN
andSTDERR
. - When the client API version is newer than the daemon’s, these calls return an HTTP
400 Bad Request
error message.
2. Endpoints
2.1 Containers
List containers
GET /containers/json
List containers