All-in-One部署ks时,安装docker的时候出问题了,如题,/bin/sh: /etc/docker/daemon.json: No such file or directory: Process exited with status 1,我目前的做法是自己导入docker.json,然后重启docker,再重新部署,今天不少同事也反映了人该问题,目前暂时没有找到问题点,请问下是否有遇到类似的情况?
系统:CentOS Linux release 7.9.2009 (干净系统)
内存:16G
核心:8
部署命令:./kk create cluster –with-kubernetes v1.18.6 –with-kubesphere v3.0.0
问题日志:
Metadata Cache Created
- ‘[’ -n '‘ ’]'
- sh -c ‘yum install -y -q docker-ce’
warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-20.10.7-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Public key for docker-ce-20.10.7-3.el7.x86_64.rpm is not installed
Importing GPG key 0×621E9F35:
Userid : “Docker Release (CE rpm) docker@docker.com”
Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
From : https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
setsebool: SELinux is disabled.
- ‘[’ -n 1 ‘]’
- sh -c ‘yum install -y -q docker-ce-rootless-extras’
Package docker-ce-rootless-extras-20.10.7-3.el7.x86_64 already installed and latest version
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
/bin/sh: /etc/docker/daemon.json: No such file or directory: Process exited with status 1 node=172.16.200.31
WARN[20:40:27 CST] Task failed …
WARN[20:40:27 CST] error: interrupted by error
Error: Failed to install docker: interrupted by error
Usage:
kk create cluster [flags]
Flags:
-f, –filename string Path to a configuration file
-h, –help help for cluster
–skip-pull-images Skip pre pull images
–with-kubernetes string Specify a supported version of kubernetes
–with-kubesphere Deploy a specific version of kubesphere (default v3.0.0)
-y, –yes Skip pre-check of the installation
Global Flags:
–debug Print detailed information (default true)
Failed to install docker: interrupted by error