Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default containerd version is to high can cause PLEG problem, why not changed it? #551

Closed
oldthreefeng opened this issue Jun 3, 2021 · 4 comments

Comments

@oldthreefeng
Copy link

for kk. install kubesphere 3.0 .
image

image

i found docker engine is 19.03.8. but containerd version is 1.4.4. which default install docker-ce 19.03.9 recommand container 1.2.3, but this changed in kubesphere. why this changed?

ref:
containerd/containerd#5261
opencontainers/runc#2865

@pixiake
Copy link
Collaborator

pixiake commented Jun 4, 2021

This is docker's default dependency, and ks has not modified it here.

In order to create clusters quickly, kk provides the ability to install docker, and uses official scripts (curl -fsSL https://get.docker.com -o get-docker.sh) to install docker.

@oldthreefeng
Copy link
Author

ok, may be some cri (containerd) has already installed before kk install.

@oldthreefeng
Copy link
Author

@pixiake can you help me find the install docker code in kk ?

@pixiake
Copy link
Collaborator

pixiake commented Jun 4, 2021

output, err1 := mgr.Runner.ExecuteCmd(fmt.Sprintf("sudo -E /bin/sh -c \"if [ -z $(which docker) ] || [ ! -e /var/run/docker.sock ]; then curl https://kubernetes.pek3b.qingstor.com/tools/kubekey/docker-install.sh | sh && systemctl enable docker; if [ ! -f /etc/docker/daemon.json ]; then mkdir -p /etc/docker && echo %s | base64 -d > /etc/docker/daemon.json; fi; systemctl daemon-reload && systemctl restart docker; fi\"", dockerConfigBase64), 0, false)

Only one script was used to install docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants