Closed choznerol closed 5 months ago
Just confirmed that --docker is no longer supported
can be fixed by configuring k3s >= v1.24.3+k3s1:
This release restores use of the --docker flag to the v1.24 branch. See docs/adrs/cri-dockerd.md for more information.
I'll close this since there is probably no actionable item (e.g. add warning) form Colima side 🙏
P.s. I'll personally default to containerd
from now on 👍
Description
Update: Use k3s >= v1.24.3+k3s1 should fix the
--docker is no longer supported
from k3s:See https://github.com/abiosoft/colima/issues/957#issuecomment-1890410527
There isn't any node available in the k3s cluster with the default
--runtime docker
.I noticed a k3s log line complaining that the
--docker
flag is no longer supported:Jan 13 09:37:28 colima-dkik k3s[2842]: time="2024-01-13T09:37:28Z" level=info msg="Waiting to retrieve agent configuration; server is not ready: --docker is no longer supported; to continue using docker, install cri-dockerd and set --container-runtime-endpoint"
Full output of
``` ychou@colima-dkik:~$ sudo systemctl status k3s --no-pager -l ● k3s.service - Lightweight Kubernetes Loaded: loaded (/etc/systemd/system/k3s.service; disabled; preset: enabled) Active: active (running) since Sat 2024-01-13 09:23:02 UTC; 14min ago Docs: https://k3s.io Process: 2838 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service (code=exited, status=0/SUCCESS) Process: 2840 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS) Process: 2841 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS) Main PID: 2842 (k3s-server) Tasks: 23 Memory: 513.8M CPU: 15min 29.476s CGroup: /system.slice/k3s.service └─2842 "/usr/local/bin/k3s server" Jan 13 09:37:22 colima-dkik k3s[2842]: time="2024-01-13T09:37:22Z" level=info msg="Waiting for control-plane node agent startup" Jan 13 09:37:23 colima-dkik k3s[2842]: time="2024-01-13T09:37:23Z" level=info msg="Waiting for control-plane node agent startup" Jan 13 09:37:23 colima-dkik k3s[2842]: time="2024-01-13T09:37:23Z" level=info msg="Waiting to retrieve agent configuration; server is not ready: --docker is no longer supported; to continue using docker, install cri-dockerd and set --container-runtime-endpoint" Jan 13 09:37:24 colima-dkik k3s[2842]: time="2024-01-13T09:37:24Z" level=info msg="Waiting for control-plane node agent startup" Jan 13 09:37:25 colima-dkik k3s[2842]: time="2024-01-13T09:37:25Z" level=info msg="Waiting for control-plane node agent startup" Jan 13 09:37:26 colima-dkik k3s[2842]: time="2024-01-13T09:37:26Z" level=info msg="Waiting for control-plane node agent startup" Jan 13 09:37:27 colima-dkik k3s[2842]: time="2024-01-13T09:37:27Z" level=info msg="Waiting for control-plane node agent startup" Jan 13 09:37:28 colima-dkik k3s[2842]: time="2024-01-13T09:37:28Z" level=info msg="Waiting for control-plane node agent startup" Jan 13 09:37:28 colima-dkik k3s[2842]: time="2024-01-13T09:37:28Z" level=info msg="Waiting to retrieve agent configuration; server is not ready: --docker is no longer supported; to continue using docker, install cri-dockerd and set --container-runtime-endpoint" Jan 13 09:37:29 colima-dkik k3s[2842]: time="2024-01-13T09:37:29Z" level=info msg="Waiting for control-plane node agent startup" ```sudo systemctl status k3s --no-pager -l
... which is probably passed here:
https://github.com/abiosoft/colima/blob/4e52450080340a2861edf647f460563a21e011d4/environment/container/kubernetes/k3s.go#L154-L155
Version
also the k3s version:
Operating System
Output of
colima status
Reproduction Steps
colima -p dkik start --runtime docker --kubernetes
# Using--runtime containerd
here can work around the issueTry to list k8s node or run a pod
Expected behaviour
Have some node available and can schedule pod. This is true with
--runtime containerd
:Additional context
No error events from the k3s cluster:
k get events -A
No error from k3s log
sudo journalctl /usr/local/bin/k3s