Files
docker-cli/cli/command/container
Sebastiaan van Stijn ee29504923 Do not disable sig-proxy when using a TTY
This partially reverts e0b59ab52b,
and does not automatically disable proxying signals in TTY-mode

Before this change:
------------------------------------

Start a container with a TTY in one shell:

```
docker run -it --init --name repro-28872 busybox sleep 30
```

then, in another shell, kill the docker cli:

```
kill `pgrep -f repro-28872`
```

Notice that the CLI was killed, but the signal not forwarded to the container;
the container continues running

```
docker container inspect --format '{{ .State.Status }}' repro-28872
running

docker container rm -f repro-28872
```

After this change:
------------------------------------

Start a container with a TTY in one shell:

```
docker run -it --init --name repro-28872 busybox sleep 30
```

then, in another shell, kill the docker cli:

```
kill `pgrep -f repro-28872`
```

Verify that the signal was forwarded to the container, and the container exited

```
docker container inspect --format '{{ .State.Status }}' repro-28872
exited

docker container rm -f repro-28872
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-06-25 16:29:21 +02:00
..
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2019-02-12 09:14:50 +08:00
2017-10-26 12:21:02 -04:00
2018-05-11 16:49:43 -07:00
2018-10-23 17:05:44 +02:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-09-05 00:01:16 +00:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2018-10-23 17:05:44 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00
2019-02-12 09:14:50 +08:00
2019-02-12 09:14:50 +08:00
2018-06-08 18:24:26 +02:00
2018-05-11 16:49:43 -07:00
2018-05-11 16:49:43 -07:00