Fix containerd proto for connection
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
cfb9764386
commit
6889c3276c
3 changed files with 10 additions and 5 deletions
|
@ -33,7 +33,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithKilledRunningContainer(t *check
|
||||||
}
|
}
|
||||||
|
|
||||||
// kill the container
|
// kill the container
|
||||||
runCmd := exec.Command(ctrBinary, "--address", "/var/run/docker/libcontainerd/docker-containerd.sock", "containers", "kill", cid)
|
runCmd := exec.Command(ctrBinary, "--address", "unix:///var/run/docker/libcontainerd/docker-containerd.sock", "containers", "kill", cid)
|
||||||
if out, ec, err := runCommandWithOutput(runCmd); err != nil {
|
if out, ec, err := runCommandWithOutput(runCmd); err != nil {
|
||||||
t.Fatalf("Failed to run ctr, ExitCode: %d, err: '%v' output: '%s' cid: '%s'\n", ec, err, out, cid)
|
t.Fatalf("Failed to run ctr, ExitCode: %d, err: '%v' output: '%s' cid: '%s'\n", ec, err, out, cid)
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithPausedRunningContainer(t *check
|
||||||
}
|
}
|
||||||
|
|
||||||
// kill the container
|
// kill the container
|
||||||
runCmd := exec.Command(ctrBinary, "--address", "/var/run/docker/libcontainerd/docker-containerd.sock", "containers", "pause", cid)
|
runCmd := exec.Command(ctrBinary, "--address", "unix:///var/run/docker/libcontainerd/docker-containerd.sock", "containers", "pause", cid)
|
||||||
if out, ec, err := runCommandWithOutput(runCmd); err != nil {
|
if out, ec, err := runCommandWithOutput(runCmd); err != nil {
|
||||||
t.Fatalf("Failed to run ctr, ExitCode: %d, err: '%v' output: '%s' cid: '%s'\n", ec, err, out, cid)
|
t.Fatalf("Failed to run ctr, ExitCode: %d, err: '%v' output: '%s' cid: '%s'\n", ec, err, out, cid)
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithUnpausedRunningContainer(t *che
|
||||||
}
|
}
|
||||||
|
|
||||||
// resume the container
|
// resume the container
|
||||||
runCmd := exec.Command(ctrBinary, "--address", "/var/run/docker/libcontainerd/docker-containerd.sock", "containers", "resume", cid)
|
runCmd := exec.Command(ctrBinary, "--address", "unix:///var/run/docker/libcontainerd/docker-containerd.sock", "containers", "resume", cid)
|
||||||
if out, ec, err := runCommandWithOutput(runCmd); err != nil {
|
if out, ec, err := runCommandWithOutput(runCmd); err != nil {
|
||||||
t.Fatalf("Failed to run ctr, ExitCode: %d, err: '%v' output: '%s' cid: '%s'\n", ec, err, out, cid)
|
t.Fatalf("Failed to run ctr, ExitCode: %d, err: '%v' output: '%s' cid: '%s'\n", ec, err, out, cid)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1550,7 +1550,7 @@ func (s *DockerDaemonSuite) TestCleanupMountsAfterDaemonAndContainerKill(c *chec
|
||||||
c.Assert(strings.Contains(string(mountOut), id), check.Equals, true, comment)
|
c.Assert(strings.Contains(string(mountOut), id), check.Equals, true, comment)
|
||||||
|
|
||||||
// kill the container
|
// kill the container
|
||||||
runCmd := exec.Command(ctrBinary, "--address", "/var/run/docker/libcontainerd/docker-containerd.sock", "containers", "kill", id)
|
runCmd := exec.Command(ctrBinary, "--address", "unix:///var/run/docker/libcontainerd/docker-containerd.sock", "containers", "kill", id)
|
||||||
if out, ec, err := runCommandWithOutput(runCmd); err != nil {
|
if out, ec, err := runCommandWithOutput(runCmd); err != nil {
|
||||||
c.Fatalf("Failed to run ctr, ExitCode: %d, err: %v output: %s id: %s\n", ec, err, out, id)
|
c.Fatalf("Failed to run ctr, ExitCode: %d, err: %v output: %s id: %s\n", ec, err, out, id)
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,7 +349,12 @@ func (r *remote) runContainerdDaemon() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start a new instance
|
// Start a new instance
|
||||||
args := []string{"-l", r.rpcAddr, "--runtime", "docker-runc", "--metrics-interval=0"}
|
args := []string{
|
||||||
|
"-l", fmt.Sprintf("unix://%s", r.rpcAddr),
|
||||||
|
"--shim", "docker-containerd-shim",
|
||||||
|
"--runtime", "docker-runc",
|
||||||
|
"--metrics-interval=0",
|
||||||
|
}
|
||||||
if r.debugLog {
|
if r.debugLog {
|
||||||
args = append(args, "--debug")
|
args = append(args, "--debug")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue