Set --state-dir on containerd.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-05-27 14:45:43 -07:00
parent 0b5e84cc8d
commit 8b5e5c6195

View file

@ -33,6 +33,7 @@ const (
containerdBinary = "docker-containerd"
containerdPidFilename = "docker-containerd.pid"
containerdSockFilename = "docker-containerd.sock"
containerdStateDir = "containerd"
eventTimestampFilename = "event.ts"
)
@ -354,6 +355,7 @@ func (r *remote) runContainerdDaemon() error {
"--shim", "docker-containerd-shim",
"--runtime", "docker-runc",
"--metrics-interval=0",
"--state-dir", filepath.Join(r.stateDir, containerdStateDir),
}
if r.debugLog {
args = append(args, "--debug")