Remote API v1.16 (Engine)

Docker Remote API v1.16

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 or pull, the HTTP connection is hijacked to transport STDOUT, STDIN and STDERR.

2. Endpoints

2.1 Containers

List containers

GET /containers/json

List containers

Example request:

    GET /containers/json?all=1&before=8dfafdbc3a40&size=1 HTTP/1.1

Example res