New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile STOPSIGNAL directive not working (but --stop-signal flag does) #19300
Comments
|
With docker 1.9.1 I have the same issue, but I don't have any StopSignal listed at all in the output of |
|
This is definitely fixed in the upcoming 1.10 version (I didn't test on 1.9) $ docker build -t testss .
Sending build context to Docker daemon 2.048 kB
Step 1 : FROM fedora
---> 6547ce9b3407
Step 2 : STOPSIGNAL SIGINT
---> Running in 7b2b21008cf8
---> 88194b50bb11
Removing intermediate container 7b2b21008cf8
Successfully built 88194b50bb11
$ docker inspect testss | grep -i stopsignal
"#(nop) STOPSIGNAL [SIGINT]"
"StopSignal": "SIGINT"
"StopSignal": "SIGINT"
$ cat Dockerfile
FROM fedora
STOPSIGNAL SIGINT |
|
ping @calavera |
|
I tested in 1.10, but am still seeing the same issue. Note that I'm running |
|
@runcom @calavera Is this fixed? Which milestone? With Docker 1.10.3 and the following Dockerfile:
|
|
@AlekseyMartynov that fix didn't make it into 1.10.3, so will be part of 1.11 |
The
--stop-signalflag todocker runworks as expected, but theSTOPSIGNALdirective does not.Sample Dockerfile:
If I
docker runthe resulting image,docker inspectshows the StopSignal is stillSIGTERM:But if I run it with
--stop-signal SIGINT, inspect shows:The text was updated successfully, but these errors were encountered: