From 1547f2451927d95f9da1a24479e57a47405dc1ed Mon Sep 17 00:00:00 2001 From: Nan Zhong Date: Mon, 2 Dec 2019 21:13:34 -0500 Subject: Add documentation for configuring shim runtime options (#43) --- docs/README.md | 1 + docs/configure-containerd-shim-runsc-v1.md | 42 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 docs/configure-containerd-shim-runsc-v1.md diff --git a/docs/README.md b/docs/README.md index eca857423..389c911ea 100644 --- a/docs/README.md +++ b/docs/README.md @@ -5,3 +5,4 @@ Everything you need to know about gvisor-containerd-shim - [Untrusted Workload Quick Start (containerd >=1.1)](untrusted-workload-quickstart.md) - [Runtime Handler Quick Start (containerd >=1.2)](runtime-handler-quickstart.md) - [Runtime Handler Quick Start (shim v2) (containerd >=1.2)](runtime-handler-shim-v2-quickstart.md) +- [Configure containerd-shim-runsc-v1 (shim v2) (containerd >= 1.3)](configure-containerd-shim-runsc-v1.md) diff --git a/docs/configure-containerd-shim-runsc-v1.md b/docs/configure-containerd-shim-runsc-v1.md new file mode 100644 index 000000000..b3be30ce7 --- /dev/null +++ b/docs/configure-containerd-shim-runsc-v1.md @@ -0,0 +1,42 @@ +# Configure containerd-shim-runsc-v1 (Shim V2) + +This document describes how to configure runtime options for `containerd-shim-runsc-v1`. +This is follows on to the instructions of [Runtime Handler Quick Start (shim v2) (containerd >=1.2)](runtime-handler-shim-v2-quickstart.md) and requires containerd 1.3 or later. + +## Configuration + +`containerd-shim-runsc-v1` supports a few different configuration options based on the version of containerd that is used. For versions >= 1.3, it supports a configurable config path in the containerd runtime configuration. + +1. Update `/etc/containerd/config.toml` to point to a configuration file for `containerd-shim-runsc-v1`. + +```shell +{ # Step 1: Update runtime options for runsc in containerd config.toml +cat <