mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Set --state-dir on containerd.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
0b5e84cc8d
commit
8b5e5c6195
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ const (
|
||||||
containerdBinary = "docker-containerd"
|
containerdBinary = "docker-containerd"
|
||||||
containerdPidFilename = "docker-containerd.pid"
|
containerdPidFilename = "docker-containerd.pid"
|
||||||
containerdSockFilename = "docker-containerd.sock"
|
containerdSockFilename = "docker-containerd.sock"
|
||||||
|
containerdStateDir = "containerd"
|
||||||
eventTimestampFilename = "event.ts"
|
eventTimestampFilename = "event.ts"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -354,6 +355,7 @@ func (r *remote) runContainerdDaemon() error {
|
||||||
"--shim", "docker-containerd-shim",
|
"--shim", "docker-containerd-shim",
|
||||||
"--runtime", "docker-runc",
|
"--runtime", "docker-runc",
|
||||||
"--metrics-interval=0",
|
"--metrics-interval=0",
|
||||||
|
"--state-dir", filepath.Join(r.stateDir, containerdStateDir),
|
||||||
}
|
}
|
||||||
if r.debugLog {
|
if r.debugLog {
|
||||||
args = append(args, "--debug")
|
args = append(args, "--debug")
|
||||||
|
|
Loading…
Add table
Reference in a new issue