docs: migrate config v1 to v2

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2022-04-05 16:41:04 +09:00
parent 84cebafe8f
commit 195fc74244
9 changed files with 60 additions and 16 deletions

View File

@@ -154,6 +154,8 @@ They should not be tampered with as corruption and bugs can and will happen.
External apps reading or watching changes in these directories have been known to cause `EBUSY` and stale file handles when containerd and/or its plugins try to cleanup resources.
```toml
version = 2
# persistent data location
root = "/var/lib/containerd"
# runtime state information
@@ -212,7 +214,9 @@ Both modes share backing data, while "shared" will reduce total bandwidth across
The default is "shared". While this is largely the most desired policy, one can change to "isolated" mode with the following configuration:
```toml
[plugins.bolt]
version = 2
[plugins."io.containerd.metadata.v1.bolt"]
content_sharing_policy = "isolated"
```