From eef67b971e572661f55e2de3b9e01dc48ca1602c Mon Sep 17 00:00:00 2001 From: yanxuean Date: Thu, 2 Aug 2018 19:58:40 +0800 Subject: [PATCH] add example in docs for containerd Signed-off-by: yanxuean --- docs/alternative_runtimes.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/alternative_runtimes.md b/docs/alternative_runtimes.md index 73443624ac2d..fa39b8fe3bf8 100644 --- a/docs/alternative_runtimes.md +++ b/docs/alternative_runtimes.md @@ -30,3 +30,25 @@ $ minikube start \ --extra-config=kubelet.image-service-endpoint=/var/run/crio/crio.sock \ --bootstrapper=kubeadm ``` + +### Using containerd + +To use [containerd](https://github.com/containerd/containerd) as the container runtime, run: + +```shell +$ minikube start \ + --network-plugin=cni \ + --container-runtime=containerd \ + --bootstrapper=kubeadm +``` + +Or you can use the extended version: + +```shell +$ minikube start \ + --network-plugin=cni \ + --extra-config=kubelet.container-runtime=remote \ + --extra-config=kubelet.container-runtime-endpoint=unix:///run/containerd/containerd.sock \ + --extra-config=kubelet.image-service-endpoint=unix:///run/containerd/containerd.sock \ + --bootstrapper=kubeadm +``` \ No newline at end of file