Skip to content

Commit 221a03d

Browse files
klihubbart0sh
authored andcommitted
README.md: update with minimal CRI-O configuration.
Signed-off-by: Krisztian Litkey <[email protected]>
1 parent f525fb7 commit 221a03d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ For CDI to work the following needs to be done:
3838

3939
### CRI-O configuration
4040

41+
In CRI-O CDI support is enabled by default. It is configured with the default `/etc/cdi, /var/run/cdi`
42+
CDI directory locations. Therefore you can start using CDI simply by dropping CDI configuration files
43+
in either of those directories, static configuration into `/etc/cdi` and dynamically updated one into
44+
`/var/run/cdi`. If you are unsure of the configured directories you can run this command to find them
45+
out:
46+
47+
```bash
48+
$ crio config |& grep -B1 -A5 cdi_spec_dirs
49+
```
50+
4151
### Containerd configuration
4252

4353
To enable and configure CDI support in the [containerd runtime](https://github.com/containerd/containerd) 2 configuration options `enable_cdi` and `cdi_spec_dirs` should be set in the `plugins."io.containerd.grpc.v1.cri` section of the containerd configuration file (`/etc/containerd/config.toml` by default):

0 commit comments

Comments
 (0)