melodic-hamburger-23329
08/09/2022, 7:37 AMnerdctl system prune --all
doesn’t seem to work with k3s.
`$ nerdctl version`:
WARN[0000] unable to determine buildctl version: exec: "buildctl": executable file not found in $PATH
WARN[0000] unable to determine runc version: exec: "runc": executable file not found in $PATH
Client:
Version: v0.22.2
OS/Arch: linux/amd64
Git commit: 2899222cb0715f1e5ffe356d10c3439ee8ee3ba4
builctl:
Version:
Server:
containerd:
Version: v1.6.6-k3s1
GitCommit:
runc:
Version:
`nerdctl system prune --all`:
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all images without at least one container associated to them
Are you sure you want to continue? [y/N] y
FATA[0000] needs CNI plugin "firewall" to be installed in CNI_PATH ("/var/lib/rancher/k3s/data/current/bin"), see <https://github.com/containernetworking/plugins/releases>: exec: "/var/lib/rancher/k3s/data/current/bin/firewall": stat /var/lib/rancher/k3s/data/current/bin/firewall: no such file or directory
`cat /etc/nerdctl/nerdctl.toml`:
address = "unix:///run/k3s/containerd/containerd.sock"
namespace = "<http://k8s.io|k8s.io>"
snapshotter = "stargz"
cgroup_manager = "systemd"
cni_path = "/var/lib/rancher/k3s/data/current/bin"
cni_netconfpath = "/var/lib/rancher/k3s/agent/etc/cni/net.d"
With plain v1.6.6 containerd (RD 1.5.0 in containerd mode with k8s disabled) the commands executed without issues.creamy-pencil-82913
08/10/2022, 3:40 AMmelodic-hamburger-23329
08/10/2022, 3:42 AMcreamy-pencil-82913
08/10/2022, 3:50 AMmelodic-hamburger-23329
08/10/2022, 5:42 AMcreamy-pencil-82913
08/15/2022, 8:09 PMmelodic-hamburger-23329
08/17/2022, 4:30 AMcreamy-pencil-82913
08/17/2022, 4:35 AMmelodic-hamburger-23329
08/17/2022, 4:40 AMcreamy-pencil-82913
08/17/2022, 5:02 AMmelodic-hamburger-23329
08/17/2022, 5:02 AMkind-summer-7554
09/03/2023, 8:28 PM