DockerCLI/cli/command/container
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
..
testdata Import docker/docker/cli 2017-04-17 17:40:59 -04:00
attach.go Update imports. 2017-04-17 18:07:56 -04:00
cmd.go Add interfacer linter 2017-05-08 15:57:50 -04:00
commit.go Update imports. 2017-04-17 18:07:56 -04:00
cp.go Update imports. 2017-04-17 18:07:56 -04:00
create.go Add interfacer linter 2017-05-08 15:57:50 -04:00
diff.go Update imports. 2017-04-17 18:07:56 -04:00
exec.go client: check tty before creating exec job 2017-05-09 21:07:40 +10:00
exec_test.go Add gometalinter to CI 2017-05-02 17:15:56 -04:00
export.go Enable golint 2017-05-02 17:57:46 -04:00
hijack.go Add gocycle lint 2017-05-02 17:57:46 -04:00
inspect.go Update imports. 2017-04-17 18:07:56 -04:00
kill.go Update imports. 2017-04-17 18:07:56 -04:00
list.go Update imports. 2017-04-17 18:07:56 -04:00
logs.go Update imports. 2017-04-17 18:07:56 -04:00
opts.go do not allow duration less than 1 ms in healthcheck parameters 2017-05-03 17:46:40 -07:00
opts_test.go Add line length linter 2017-05-08 15:57:56 -04:00
pause.go Update imports. 2017-04-17 18:07:56 -04:00
port.go Update imports. 2017-04-17 18:07:56 -04:00
prune.go Add interfacer linter 2017-05-08 15:57:50 -04:00
ps_test.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
rename.go Update imports. 2017-04-17 18:07:56 -04:00
restart.go Update imports. 2017-04-17 18:07:56 -04:00
rm.go Update imports. 2017-04-17 18:07:56 -04:00
run.go Add interfacer linter 2017-05-08 15:57:50 -04:00
start.go Add gocycle lint 2017-05-02 17:57:46 -04:00
stats.go Add gocycle lint 2017-05-02 17:57:46 -04:00
stats_helpers.go cli: gofmt + goimports 2017-05-08 10:51:30 -07:00
stats_unit_test.go Add line length linter 2017-05-08 15:57:56 -04:00
stop.go Update imports. 2017-04-17 18:07:56 -04:00
top.go Update imports. 2017-04-17 18:07:56 -04:00
tty.go cli: gofmt + goimports 2017-05-08 10:51:30 -07:00
unpause.go Update imports. 2017-04-17 18:07:56 -04:00
update.go Enable golint 2017-05-02 17:57:46 -04:00
utils.go cli: gofmt + goimports 2017-05-08 10:51:30 -07:00
wait.go Update imports. 2017-04-17 18:07:56 -04:00