What is the Docker Engine API and how can you use it without the CLI?
IntermediateConceptRuntime Stack, OCI & Registries
Answer
A versioned REST API served on the Unix socket. You can call it with curl:
curl --unix-socket /var/run/docker.sock http://localhost/v1.45/containers/json
SDKs exist for Go, Python (docker package) and others. docker events streams the same event feed.
More on Runtime Stack, OCI & Registries
What is the architecture of Docker Engine?IntermediateWhat is the OCI and what specs does it define?IntermediateWhat does `runc` do?IntermediateWhat is containerd and how does it relate to Docker and Kubernetes?IntermediateWhat are `ctr`, `crictl` and `nerdctl`?IntermediateWhat is CRI-O?Intermediate