It is intended to be as simple as possible to allow a proxy to serve container without needing full access to the docker socket by exposing the docker socket (unix socket) via HTTP
The application accepts the following command-line flags, which can also be set via environment variables:
-socket/SOCKET(default:/var/run/docker.sock)-
Path to the Docker socket
-proxyPort/PROXYPORT(default:8080)-
Port for the proxy to listen on
-killSignals/KILLSIGNALS(default:HUP)-
Space-separated list of permissible kill signals, if blank none are allowed
-allowPulls/ALLOWPULLS(default:false)-
Allow pulling images
-allowPrune/ALLOWPRUNE(default:false)-
Allow pruning containers, images, networks, volumes and build cache
-allowExec/ALLOWEXEC(default:false)-
Allow running commands in and attaching to containers
Warning: permits running any command in any container and writing to container stdin via attach -allowCreate/ALLOWCREATE(default:false)-
Allow creating, starting, waiting on and deleting containers
Warning: permits creating containers with any mounts or privileges, which is equivalent to root on the host -allowAll/ALLOWALL(default:false)-
Allow all requests
Warning: passes every request to the socket and disables all other checks
-log.format/LOG_FORMAT(default:text)-
Log format, either
textorjson -log.level/LOG_LEVEL(default:info)-
Minimum log level to output (
debug,info,warn,error)
GET /-
All GET requests are allowed
POST /containers/{id}/kill-
Allowed only with permitted signals
POST /images/create-
Allowed only if
-allowPullsis enabled POST /{containers,images,networks,volumes,build}/prune-
Allowed only if
-allowPruneis enabled POST /containers/{id}/attachPOST /containers/{id}/execPOST /exec/{id}/startPOST /exec/{id}/resize-
Allowed only if
-allowExecis enabled POST /containers/createPOST /containers/{id}/startPOST /containers/{id}/waitDELETE /containers/{id}-
Allowed only if
-allowCreateis enabled - All other requests (
POST,PUT,DELETE, …) -
Denied
Streaming endpoints (events, stats, logs, attach, archive, pulls, exec and the endpoints above) are not subject to the 30 second server timeout.