Installs nerdctl and CNI plugins from upstream.
"features": {
"ghcr.io/thediveo/devcontainer-features/nerdctl:0": {}
}| Options Id | Description | Type | Default Value |
|---|---|---|---|
| version | version of nerdctl to install | string | latest |
| cni | additionally install CNI plugins from nerdctl-full | boolean | true |
| cni-path | path to install CNI plugin binaries into | string | /usr/libexec/cni |
| containerd-api | path to containerd API endpoint | string | unix:///run/containerd/containerd.sock |
Please note that the docker-in-docker feature is only available for
Debian/Docker-based base images.
In order to use nerdctl with the containerd included in the
docker-in-docker
feature, you need to explicitly configure the non-standard API endpoint URL for
containerd as follows:
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"dockerDashComposeVersion": "none",
"installDockerBuildx": false
},
"ghcr.io/devcontainers/features/nerdctl:0": {
"containerd-api": "unix:///run/docker/containerd/containerd.sock"
}
}Tested with:
- ghcr.io/almalinux/almalinux,
- mcr.microsoft.com/devcontainers/base:debian,
- fedora,
- mcr.microsoft.com/devcontainers/base:ubuntu.
Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.