diff --git a/daemon/exec.go b/daemon/exec.go index 92f23f7380..616093c67d 100644 --- a/daemon/exec.go +++ b/daemon/exec.go @@ -64,7 +64,7 @@ func (e *execStore) Delete(id string) { func (e *execStore) List() []string { var IDs []string e.RLock() - for id, _ := range e.s { + for id := range e.s { IDs = append(IDs, id) } e.RUnlock() diff --git a/docs/sources/reference/api/docker_remote_api.md b/docs/sources/reference/api/docker_remote_api.md index e44576cea0..fa210d4583 100644 --- a/docs/sources/reference/api/docker_remote_api.md +++ b/docs/sources/reference/api/docker_remote_api.md @@ -51,6 +51,11 @@ You can still call an old version of the API using **New!** Docker client now hints potential proxies about connection hijacking using HTTP Upgrade headers. +`GET /containers/(id)/json` + +**New!** +This endpoint now returns the list current execs associated with the container (`ExecIDs`). + ## v1.16 ### Full Documentation diff --git a/docs/sources/reference/api/docker_remote_api_v1.17.md b/docs/sources/reference/api/docker_remote_api_v1.17.md index 6c544c96bb..772ba116e1 100644 --- a/docs/sources/reference/api/docker_remote_api_v1.17.md +++ b/docs/sources/reference/api/docker_remote_api_v1.17.md @@ -310,6 +310,9 @@ Return low-level information on the container `id` "SysInitPath": "/home/kitty/go/src/github.com/docker/docker/bin/docker", "ResolvConfPath": "/etc/resolv.conf", "Volumes": {}, + "ExecIDs": [ + "15f211491dced6a353a2e0f37fe3f3692ee2370a4782418e9bf7052865c10fde" + ], "HostConfig": { "Binds": null, "ContainerIDFile": "",