mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
18 lines
562 B
Go
18 lines
562 B
Go
![]() |
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/docker/docker/integration-cli/checker"
|
||
|
"github.com/go-check/check"
|
||
|
)
|
||
|
|
||
|
func (s *DockerSuite) TestStopContainerWithRestartPolicyAlways(c *check.C) {
|
||
|
dockerCmd(c, "run", "--name", "verifyRestart1", "-d", "--restart=always", "busybox", "false")
|
||
|
dockerCmd(c, "run", "--name", "verifyRestart2", "-d", "--restart=always", "busybox", "false")
|
||
|
|
||
|
c.Assert(waitRun("verifyRestart1"), checker.IsNil)
|
||
|
c.Assert(waitRun("verifyRestart2"), checker.IsNil)
|
||
|
|
||
|
dockerCmd(c, "stop", "verifyRestart1")
|
||
|
dockerCmd(c, "stop", "verifyRestart2")
|
||
|
}
|