github.com/jingleWang/moby@v1.13.1/integration-cli/docker_cli_stop_test.go (about) 1 package main 2 3 import ( 4 "github.com/docker/docker/pkg/integration/checker" 5 "github.com/go-check/check" 6 ) 7 8 func (s *DockerSuite) TestStopContainerWithRestartPolicyAlways(c *check.C) { 9 dockerCmd(c, "run", "--name", "verifyRestart1", "-d", "--restart=always", "busybox", "false") 10 dockerCmd(c, "run", "--name", "verifyRestart2", "-d", "--restart=always", "busybox", "false") 11 12 c.Assert(waitRun("verifyRestart1"), checker.IsNil) 13 c.Assert(waitRun("verifyRestart2"), checker.IsNil) 14 15 dockerCmd(c, "stop", "verifyRestart1") 16 dockerCmd(c, "stop", "verifyRestart2") 17 }