DockerCLI/cli
Aleksa Sarai ee7a956c54
client: check tty before creating exec job
This is necessary in order to avoid execId leaks in the case where a
`docker exec -it` is run without a terminal available for the client.
You can reproduce this issue by running the following command many
times.

  % nohup docker exec -it some_container true

The container `some_container` will have execIDs that will never
normally be cleaned up (because the client died before they were
started).

In addition, this patch adds a docker-inspect step to ensure that we
give "container does not exist" errors consistently.

Signed-off-by: Valentin Rothberg <vrothberg@suse.com>
Signed-off-by: Aleksa Sarai <asarai@suse.de>
2017-05-09 21:07:40 +10:00
..
command client: check tty before creating exec job 2017-05-09 21:07:40 +10:00
compose Support placement preferences in stack deployment 2017-05-09 07:00:45 +08:00
config Add ineffassign linter. 2017-05-02 17:57:46 -04:00
debug Import docker/docker/cli 2017-04-17 17:40:59 -04:00
flags Remove unused trust key 2017-05-08 11:49:40 -07:00
internal/test rm client and vendor it instead 2017-05-08 10:33:56 -07:00
trust Update imports. 2017-04-17 18:07:56 -04:00
cobra.go fix docker/docker/cli path in comment 2017-04-24 11:31:08 -07:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00