mirror of
https://github.com/moby/moby.git
synced 2025-07-30 18:23:29 +03:00
Add STOPSIGNAL
instruction to dockerfiles.
This way, images creators can set the exit signal their programs use. Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
@ -458,3 +458,15 @@ func (s *DockerTrustSuite) TestTrustedCreateFromBadTrustServer(c *check.C) {
|
||||
c.Fatalf("Missing expected output on trusted push:\n%s", out)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestCreateStopSignal(c *check.C) {
|
||||
name := "test_create_stop_signal"
|
||||
dockerCmd(c, "create", "--name", name, "--stop-signal", "9", "busybox")
|
||||
|
||||
res, err := inspectFieldJSON(name, "Config.StopSignal")
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
if res != `"9"` {
|
||||
c.Fatalf("Expected 9, got %s", res)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user