You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems related to #2607 but not entirely sure.
Description
Without -tdocker does not seem to respect sig-proxy.
Ran this
docker run --rm --env TINI_VERBOSITY=3 --env TINI_KILL_PROCESS_GROUP=1 --init --entrypoint= --sig-proxy=true -i --attach stdin --attach stdout --attach stderr ubuntu perl -E '$SIG{INT} = sub { say "hi" }; $SIG{TERM} = sub { say "term"; }; say "starting" ; STDOUT->flush; sleep 100'
Expected this:
starting
^Chi
[INFO tini (1)] Spawned child process 'perl' with pid '6'
[DEBUG tini (1)] Passing signal: 'Interrupt'
[DEBUG tini (1)] Received SIGCHLD
[DEBUG tini (1)] Reaped child with pid: '6'
[INFO tini (1)] Main child exited normally (with status '0')
Got this:
starting
^C%
(and if you run docker ps you'll see that it is still running).
HOWEVER
If you repeat the above experiment using com.docker.cli it works fine. Also if you use -t it is fine.
I think this should be fixed by docker-archive/compose-cli#423. Trying on a current Docker Desktop install with "cloud experience" enabled;
$ docker run --rm --env TINI_VERBOSITY=3 --env TINI_KILL_PROCESS_GROUP=1 --init --entrypoint= --sig-proxy=true -i --attach stdin --attach stdout --attach stderr ubuntu perl -E '$SIG{INT} = sub { say "hi" }; $SIG{TERM} = sub { say "term"; }; say "starting" ; STDOUT->flush; sleep 100'starting^Chi[INFO tini (1)] Spawned child process 'perl' with pid '7'[DEBUG tini (1)] Passing signal: 'Interrupt'[DEBUG tini (1)] Received SIGCHLD[DEBUG tini (1)] Reaped child with pid: '7'[INFO tini (1)] Main child exited normally (with status '0')
This seems related to #2607 but not entirely sure.
Description
Without
-t
docker
does not seem to respectsig-proxy
.Ran this
Expected this:
Got this:
(and if you run
docker ps
you'll see that it is still running).If you repeat the above experiment using
com.docker.cli
it works fine. Also if you use-t
it is fine.Output of
docker version
:Output of
docker info
:OS X running Docker Desktop Edge.
The text was updated successfully, but these errors were encountered: