|
@@ -26,7 +26,6 @@ import (
|
|
"github.com/cloudflare/cfssl/helpers"
|
|
"github.com/cloudflare/cfssl/helpers"
|
|
"github.com/creack/pty"
|
|
"github.com/creack/pty"
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/docker/docker/api/types"
|
|
- moby_daemon "github.com/docker/docker/daemon"
|
|
|
|
"github.com/docker/docker/integration-cli/checker"
|
|
"github.com/docker/docker/integration-cli/checker"
|
|
"github.com/docker/docker/integration-cli/cli"
|
|
"github.com/docker/docker/integration-cli/cli"
|
|
"github.com/docker/docker/integration-cli/cli/build"
|
|
"github.com/docker/docker/integration-cli/cli/build"
|
|
@@ -1457,7 +1456,7 @@ func (s *DockerDaemonSuite) TestCleanupMountsAfterDaemonAndContainerKill(c *chec
|
|
|
|
|
|
// kill the container
|
|
// kill the container
|
|
icmd.RunCommand(ctrBinary, "--address", containerdSocket,
|
|
icmd.RunCommand(ctrBinary, "--address", containerdSocket,
|
|
- "--namespace", moby_daemon.ContainersNamespace, "tasks", "kill", id).Assert(c, icmd.Success)
|
|
|
|
|
|
+ "--namespace", d.ContainersNamespace(), "tasks", "kill", id).Assert(c, icmd.Success)
|
|
|
|
|
|
// restart daemon.
|
|
// restart daemon.
|
|
d.Restart(c)
|
|
d.Restart(c)
|
|
@@ -1977,7 +1976,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithKilledRunningContainer(t *check
|
|
|
|
|
|
// kill the container
|
|
// kill the container
|
|
icmd.RunCommand(ctrBinary, "--address", containerdSocket,
|
|
icmd.RunCommand(ctrBinary, "--address", containerdSocket,
|
|
- "--namespace", moby_daemon.ContainersNamespace, "tasks", "kill", cid).Assert(t, icmd.Success)
|
|
|
|
|
|
+ "--namespace", s.d.ContainersNamespace(), "tasks", "kill", cid).Assert(t, icmd.Success)
|
|
|
|
|
|
// Give time to containerd to process the command if we don't
|
|
// Give time to containerd to process the command if we don't
|
|
// the exit event might be received after we do the inspect
|
|
// the exit event might be received after we do the inspect
|
|
@@ -2080,7 +2079,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithUnpausedRunningContainer(t *che
|
|
result := icmd.RunCommand(
|
|
result := icmd.RunCommand(
|
|
ctrBinary,
|
|
ctrBinary,
|
|
"--address", containerdSocket,
|
|
"--address", containerdSocket,
|
|
- "--namespace", moby_daemon.ContainersNamespace,
|
|
|
|
|
|
+ "--namespace", s.d.ContainersNamespace(),
|
|
"tasks", "resume", cid)
|
|
"tasks", "resume", cid)
|
|
result.Assert(t, icmd.Success)
|
|
result.Assert(t, icmd.Success)
|
|
|
|
|