docs/ocicrypt.md: update for containerd 1.5
The config has been enabled by default since containerd 1.5. (containerd PR 5135) Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
7f0c30ee64
commit
a7c7dcd285
|
|
@ -10,7 +10,15 @@ See https://github.com/containerd/imgcrypt
|
|||
## Decryption
|
||||
|
||||
### Configuration
|
||||
Add the following configuration to `/etc/containerd/config.toml` (for rootless `~/.config/containerd/config.toml`):
|
||||
Put the private key files to `/etc/containerd/ocicrypt/keys` (for rootless `~/.config/containerd/ocicrypt/keys`).
|
||||
|
||||
<details>
|
||||
<summary>Extra step for containerd 1.4 and older</summary>
|
||||
|
||||
<p>
|
||||
|
||||
containerd 1.4 and older requires adding the following configuration to `/etc/containerd/config.toml`
|
||||
(for rootless `~/.config/containerd/config.toml`):
|
||||
|
||||
```toml
|
||||
version = 2
|
||||
|
|
@ -30,9 +38,9 @@ version = 2
|
|||
# NOTE: On rootless, ~/.config/containerd is mounted as /etc/containerd in the namespace.
|
||||
```
|
||||
|
||||
Future version of containerd may have this configuration by default: https://github.com/containerd/containerd/pull/5135
|
||||
</p>
|
||||
|
||||
Then, put the private key files to `/etc/containerd/ocicrypt/keys` (for rootless `~/.config/containerd/ocicrypt/keys`).
|
||||
</details>
|
||||
|
||||
### nerdctl run
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue