Closed anders-elastisys closed 1 year ago
Describe the bug The prune-docker script and playbook does not work in newer CK8s clusters as docker has been replaced with containerd.
To Reproduce Steps to reproduce the behavior:
./bin/ck8s-kubespray prune-docker wc
TASK [Docker prune unused images, containers, networks etc.] *********************************************************************************** fatal: [wc-master-1]: FAILED! => {"changed": false, "cmd": "docker volume prune --filter --all=1 '&&' docker system prune", "msg": " [Errno 2] No such file or directory: b'docker'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
Expected behavior Should be able to run a playbook that prunes container images etc, e.g. with containerd we can instead run crictl rmi --prune.
crictl rmi --prune
Screenshots If applicable, add screenshots to help explain your problem.
Version (add all relevant versions):
Additional context Add any other context about the problem here.
Describe the bug The prune-docker script and playbook does not work in newer CK8s clusters as docker has been replaced with containerd.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should be able to run a playbook that prunes container images etc, e.g. with containerd we can instead run
crictl rmi --prune
.Screenshots If applicable, add screenshots to help explain your problem.
Version (add all relevant versions):
Additional context Add any other context about the problem here.