瀏覽代碼

Add docs for "--containerd" in dockerd

Signed-off-by: ohmystack <jiangjun1990@gmail.com>
ohmystack 9 年之前
父節點
當前提交
cebb9543e1
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      docs/reference/commandline/dockerd.md

+ 8 - 0
docs/reference/commandline/dockerd.md

@@ -594,6 +594,14 @@ The Docker daemon relies on a
 (invoked via the `containerd` daemon) as its interface to the Linux
 (invoked via the `containerd` daemon) as its interface to the Linux
 kernel `namespaces`, `cgroups`, and `SELinux`.
 kernel `namespaces`, `cgroups`, and `SELinux`.
 
 
+By default, the Docker daemon automatically starts `containerd`. If you want to
+control `containerd` startup, manually start `containerd` and pass the path to
+the `containerd` socket using the `--containerd` flag. For example:
+
+```bash
+$ dockerd --containerd /var/run/dev/docker-containerd.sock
+```
+
 Runtimes can be registered with the daemon either via the
 Runtimes can be registered with the daemon either via the
 configuration file or using the `--add-runtime` command line argument.
 configuration file or using the `--add-runtime` command line argument.