docker api - ghdrako/doc_snipets GitHub Wiki

curl --unix-socket
/run/docker.sock http://docker/containers//json|jq

Docker’s Golang SDK has extensive documentation. In particular, about the Go client

docs.docker.com/config/containers/start-containers-automatically/#restart-policy-details