DockerCLI/cli/command
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
..
bundlefile Import docker/docker/cli 2017-04-17 17:40:59 -04:00
checkpoint Add interfacer linter 2017-05-08 15:57:50 -04:00
commands Update imports. 2017-04-17 18:07:56 -04:00
container client: check tty before creating exec job 2017-05-09 21:07:40 +10:00
formatter Add line length linter 2017-05-08 15:57:56 -04:00
idresolver cli: gofmt + goimports 2017-05-08 10:51:30 -07:00
image Add interfacer linter 2017-05-08 15:57:50 -04:00
inspect Update imports. 2017-04-17 18:07:56 -04:00
network Add interfacer linter 2017-05-08 15:57:50 -04:00
node Add interfacer linter 2017-05-08 15:57:50 -04:00
plugin Add interfacer linter 2017-05-08 15:57:50 -04:00
prune Add interfacer linter 2017-05-08 15:57:50 -04:00
registry Add interfacer linter 2017-05-08 15:57:50 -04:00
secret Add interfacer linter 2017-05-08 15:57:50 -04:00
service Add line length linter 2017-05-08 15:57:56 -04:00
stack Add interfacer linter 2017-05-08 15:57:50 -04:00
swarm Add line length linter 2017-05-08 15:57:56 -04:00
system Add line length linter 2017-05-08 15:57:56 -04:00
task Add ineffassign linter. 2017-05-02 17:57:46 -04:00
volume Add interfacer linter 2017-05-08 15:57:50 -04:00
cli.go Add interfacer linter 2017-05-08 15:57:50 -04:00
events_utils.go Add deadcode linter. 2017-05-02 17:57:46 -04:00
in.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
out.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
registry.go Unit tests for cli/commands/image (except build and tag) 2017-05-03 18:40:22 -07:00
stream.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
trust.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
utils.go Add interfacer linter 2017-05-08 15:57:50 -04:00