在线安装5.1.9(docker手动安装),报错Tcp connection error

比较明确,是 kubelet 服务没起来,查它的日志,会给你更多信息:

journalctl -fu kubelet 

你自己安装了docker ?

是的

yum install docker
vi /etc/docker/daemon.json
{
“insecure-registries”: [“goodrain.me”]
}
systemctl start docker

Jan 03 17:54:20 KSSYYVI01536 systemd[1]: kubelet.service holdoff time over, scheduling restart.
Jan 03 17:54:20 KSSYYVI01536 systemd[1]: Stopped kubelet.
Jan 03 17:54:20 KSSYYVI01536 systemd[1]: Starting kubelet…
Jan 03 17:54:20 KSSYYVI01536 systemd[1]: Started kubelet.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --allow-privileged has been deprecated, will be removed in a future version
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --address has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --port has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --cluster-domain has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --hairpin-mode has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --cluster-dns has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --fail-swap-on has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --image-gc-high-threshold has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --image-gc-low-threshold has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --kube-reserved has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --system-reserved has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --max-pods has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --eviction-max-pod-grace-period has been deprecated, This parameter should be set via the config file specified by the Kubelet’s --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: Flag --maximum-dead-containers-per-container has been deprecated, Use --eviction-hard or --eviction-soft instead. Will be removed in a future version.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387328 892 flags.go:27] FLAG: --address=“172.25.242.63”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387367 892 flags.go:27] FLAG: --allow-privileged=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387374 892 flags.go:27] FLAG: --alsologtostderr=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387380 892 flags.go:27] FLAG: --anonymous-auth=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387384 892 flags.go:27] FLAG: --application-metrics-count-limit=“100”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387389 892 flags.go:27] FLAG: --authentication-token-webhook=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387392 892 flags.go:27] FLAG: --authentication-token-webhook-cache-ttl=“2m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387398 892 flags.go:27] FLAG: --authorization-mode=“AlwaysAllow”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387405 892 flags.go:27] FLAG: --authorization-webhook-cache-authorized-ttl=“5m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387409 892 flags.go:27] FLAG: --authorization-webhook-cache-unauthorized-ttl=“30s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387413 892 flags.go:27] FLAG: --azure-container-registry-config=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387417 892 flags.go:27] FLAG: --boot-id-file="/proc/sys/kernel/random/boot_id"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387422 892 flags.go:27] FLAG: --bootstrap-checkpoint-path=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387426 892 flags.go:27] FLAG: --bootstrap-kubeconfig=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387429 892 flags.go:27] FLAG: --cadvisor-port=“4194”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387438 892 flags.go:27] FLAG: --cert-dir="/opt/rainbond/etc/kubernetes/ssl"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387442 892 flags.go:27] FLAG: --cgroup-driver=“cgroupfs”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387447 892 flags.go:27] FLAG: --cgroup-root=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387450 892 flags.go:27] FLAG: --cgroups-per-qos=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387454 892 flags.go:27] FLAG: --chaos-chance=“0”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387461 892 flags.go:27] FLAG: --client-ca-file=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387465 892 flags.go:27] FLAG: --cloud-config=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387468 892 flags.go:27] FLAG: --cloud-provider=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387472 892 flags.go:27] FLAG: --cluster-dns="[172.25.242.63]"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387482 892 flags.go:27] FLAG: --cluster-domain=“cluster.local.”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387487 892 flags.go:27] FLAG: --cni-bin-dir="/opt/rainbond/bin"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387491 892 flags.go:27] FLAG: --cni-conf-dir="/opt/rainbond/etc/cni"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387495 892 flags.go:27] FLAG: --config=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387499 892 flags.go:27] FLAG: --container-hints="/etc/cadvisor/container_hints.json"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387503 892 flags.go:27] FLAG: --container-log-max-files=“5”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387507 892 flags.go:27] FLAG: --container-log-max-size=“10Mi”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387511 892 flags.go:27] FLAG: --container-runtime=“docker”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387514 892 flags.go:27] FLAG: --container-runtime-endpoint=“unix:///var/run/dockershim.sock”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387518 892 flags.go:27] FLAG: --containerd=“unix:///var/run/containerd.sock”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387522 892 flags.go:27] FLAG: --containerized=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387526 892 flags.go:27] FLAG: --contention-profiling=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387531 892 flags.go:27] FLAG: --cpu-cfs-quota=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387534 892 flags.go:27] FLAG: --cpu-manager-policy=“none”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387538 892 flags.go:27] FLAG: --cpu-manager-reconcile-period=“10s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387542 892 flags.go:27] FLAG: --docker=“unix:///var/run/docker.sock”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387546 892 flags.go:27] FLAG: --docker-disable-shared-pid=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387549 892 flags.go:27] FLAG: --docker-endpoint=“unix:///var/run/docker.sock”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387554 892 flags.go:27] FLAG: --docker-env-metadata-whitelist=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387558 892 flags.go:27] FLAG: --docker-only=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387562 892 flags.go:27] FLAG: --docker-root="/var/lib/docker"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387566 892 flags.go:27] FLAG: --docker-tls=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387570 892 flags.go:27] FLAG: --docker-tls-ca=“ca.pem”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387573 892 flags.go:27] FLAG: --docker-tls-cert=“cert.pem”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387577 892 flags.go:27] FLAG: --docker-tls-key=“key.pem”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387581 892 flags.go:27] FLAG: --dynamic-config-dir=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387587 892 flags.go:27] FLAG: --enable-controller-attach-detach=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387590 892 flags.go:27] FLAG: --enable-custom-metrics=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387594 892 flags.go:27] FLAG: --enable-debugging-handlers=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387597 892 flags.go:27] FLAG: --enable-load-reader=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387601 892 flags.go:27] FLAG: --enable-server=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387605 892 flags.go:27] FLAG: --enforce-node-allocatable="[pods]"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387610 892 flags.go:27] FLAG: --event-burst=“10”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387614 892 flags.go:27] FLAG: --event-qps=“5”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387618 892 flags.go:27] FLAG: --event-storage-age-limit=“default=0”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387622 892 flags.go:27] FLAG: --event-storage-event-limit=“default=0”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387625 892 flags.go:27] FLAG: --eviction-hard=“imagefs.available<15%,memory.available<100Mi,nodefs.available<10%,nodefs.inodesFree<5%”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387638 892 flags.go:27] FLAG: --eviction-max-pod-grace-period=“40”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387642 892 flags.go:27] FLAG: --eviction-minimum-reclaim=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387649 892 flags.go:27] FLAG: --eviction-pressure-transition-period=“5m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387653 892 flags.go:27] FLAG: --eviction-soft=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387656 892 flags.go:27] FLAG: --eviction-soft-grace-period=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387660 892 flags.go:27] FLAG: --exit-on-lock-contention=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387665 892 flags.go:27] FLAG: --experimental-allocatable-ignore-eviction=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387668 892 flags.go:27] FLAG: --experimental-allowed-unsafe-sysctls="[]"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387674 892 flags.go:27] FLAG: --experimental-bootstrap-kubeconfig=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387678 892 flags.go:27] FLAG: --experimental-check-node-capabilities-before-mount=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387682 892 flags.go:27] FLAG: --experimental-dockershim=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387695 892 flags.go:27] FLAG: --experimental-dockershim-root-directory="/var/lib/dockershim"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387699 892 flags.go:27] FLAG: --experimental-fail-swap-on=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387703 892 flags.go:27] FLAG: --experimental-kernel-memcg-notification=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387718 892 flags.go:27] FLAG: --experimental-mounter-path=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387722 892 flags.go:27] FLAG: --experimental-qos-reserved=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387726 892 flags.go:27] FLAG: --fail-swap-on=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387734 892 flags.go:27] FLAG: --feature-gates=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387740 892 flags.go:27] FLAG: --file-check-frequency=“20s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387744 892 flags.go:27] FLAG: --global-housekeeping-interval=“1m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387749 892 flags.go:27] FLAG: --google-json-key=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387754 892 flags.go:27] FLAG: --hairpin-mode=“promiscuous-bridge”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387761 892 flags.go:27] FLAG: --healthz-bind-address=“127.0.0.1”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387767 892 flags.go:27] FLAG: --healthz-port=“10248”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387773 892 flags.go:27] FLAG: --help=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387778 892 flags.go:27] FLAG: --host-ipc-sources="[]"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387784 892 flags.go:27] FLAG: --host-network-sources="[
]"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387793 892 flags.go:27] FLAG: --host-pid-sources="[*]"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387799 892 flags.go:27] FLAG: --hostname-override=“423aa905-8e37-5759-4107-97588b4398dd”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387806 892 flags.go:27] FLAG: --housekeeping-interval=“10s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387811 892 flags.go:27] FLAG: --http-check-frequency=“20s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387817 892 flags.go:27] FLAG: --image-gc-high-threshold=“90”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387821 892 flags.go:27] FLAG: --image-gc-low-threshold=“80”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387824 892 flags.go:27] FLAG: --image-pull-progress-deadline=“1m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387828 892 flags.go:27] FLAG: --image-service-endpoint=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387832 892 flags.go:27] FLAG: --iptables-drop-bit=“15”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387836 892 flags.go:27] FLAG: --iptables-masquerade-bit=“14”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387840 892 flags.go:27] FLAG: --keep-terminated-pod-volumes=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387843 892 flags.go:27] FLAG: --kube-api-burst=“10”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387847 892 flags.go:27] FLAG: --kube-api-content-type=“application/vnd.kubernetes.protobuf”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387851 892 flags.go:27] FLAG: --kube-api-qps=“5”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387855 892 flags.go:27] FLAG: --kube-reserved=“cpu=300m,ephemeral-storage=1Gi,memory=512Mi”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387862 892 flags.go:27] FLAG: --kube-reserved-cgroup=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387866 892 flags.go:27] FLAG: --kubeconfig="/opt/rainbond/etc/kubernetes/kubecfg/admin.kubeconfig"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387870 892 flags.go:27] FLAG: --kubelet-cgroups=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387874 892 flags.go:27] FLAG: --lock-file=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387877 892 flags.go:27] FLAG: --log-backtrace-at=":0"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387882 892 flags.go:27] FLAG: --log-cadvisor-usage=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387886 892 flags.go:27] FLAG: --log-dir=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387890 892 flags.go:27] FLAG: --log-flush-frequency=“5s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387894 892 flags.go:27] FLAG: --logtostderr=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387898 892 flags.go:27] FLAG: --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387903 892 flags.go:27] FLAG: --make-iptables-util-chains=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387906 892 flags.go:27] FLAG: --manifest-url=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387910 892 flags.go:27] FLAG: --manifest-url-header=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387917 892 flags.go:27] FLAG: --master-service-namespace=“default”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387921 892 flags.go:27] FLAG: --max-open-files=“1000000”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387928 892 flags.go:27] FLAG: --max-pods=“10000”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387932 892 flags.go:27] FLAG: --maximum-dead-containers="-1"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387936 892 flags.go:27] FLAG: --maximum-dead-containers-per-container=“0”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387939 892 flags.go:27] FLAG: --minimum-container-ttl-duration=“0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387943 892 flags.go:27] FLAG: --minimum-image-ttl-duration=“2m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387947 892 flags.go:27] FLAG: --network-plugin=“cni”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387951 892 flags.go:27] FLAG: --network-plugin-mtu=“0”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387955 892 flags.go:27] FLAG: --node-ip=“172.25.242.63”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387958 892 flags.go:27] FLAG: --node-labels=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387965 892 flags.go:27] FLAG: --node-status-update-frequency=“10s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387969 892 flags.go:27] FLAG: --non-masquerade-cidr=“10.0.0.0/8”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387973 892 flags.go:27] FLAG: --oom-score-adj="-999"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387976 892 flags.go:27] FLAG: --pod-cidr=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387980 892 flags.go:27] FLAG: --pod-infra-container-image=“goodrain.me/pause-amd64:3.0
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387984 892 flags.go:27] FLAG: --pod-manifest-path=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387987 892 flags.go:27] FLAG: --pod-max-pids="-1"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387991 892 flags.go:27] FLAG: --pods-per-core=“0”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387994 892 flags.go:27] FLAG: --port=“10250”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.387998 892 flags.go:27] FLAG: --protect-kernel-defaults=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388002 892 flags.go:27] FLAG: --provider-id=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388005 892 flags.go:27] FLAG: --read-only-port=“10255”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388009 892 flags.go:27] FLAG: --really-crash-for-testing=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388013 892 flags.go:27] FLAG: --register-node=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388016 892 flags.go:27] FLAG: --register-schedulable=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388020 892 flags.go:27] FLAG: --register-with-taints=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388026 892 flags.go:27] FLAG: --registry-burst=“10”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388030 892 flags.go:27] FLAG: --registry-qps=“5”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388034 892 flags.go:27] FLAG: --resolv-conf="/etc/resolv.conf"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388038 892 flags.go:27] FLAG: --rkt-api-endpoint=“localhost:15441”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388042 892 flags.go:27] FLAG: --rkt-path=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388046 892 flags.go:27] FLAG: --rkt-stage1-image=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388050 892 flags.go:27] FLAG: --root-dir="/var/lib/kubelet"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388054 892 flags.go:27] FLAG: --rotate-certificates=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388058 892 flags.go:27] FLAG: --runonce=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388061 892 flags.go:27] FLAG: --runtime-cgroups=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388065 892 flags.go:27] FLAG: --runtime-request-timeout=“2m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388069 892 flags.go:27] FLAG: --seccomp-profile-root="/var/lib/kubelet/seccomp"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388073 892 flags.go:27] FLAG: --serialize-image-pulls=“true”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388077 892 flags.go:27] FLAG: --stderrthreshold=“2”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388081 892 flags.go:27] FLAG: --storage-driver-buffer-duration=“1m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388085 892 flags.go:27] FLAG: --storage-driver-db=“cadvisor”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388089 892 flags.go:27] FLAG: --storage-driver-host=“localhost:8086”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388093 892 flags.go:27] FLAG: --storage-driver-password=“root”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388098 892 flags.go:27] FLAG: --storage-driver-secure=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388101 892 flags.go:27] FLAG: --storage-driver-table=“stats”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388105 892 flags.go:27] FLAG: --storage-driver-user=“root”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388109 892 flags.go:27] FLAG: --streaming-connection-idle-timeout=“4h0m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388112 892 flags.go:27] FLAG: --sync-frequency=“1m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388116 892 flags.go:27] FLAG: --system-cgroups=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388120 892 flags.go:27] FLAG: --system-reserved=“cpu=700m,ephemeral-storage=1Gi,memory=1024Mi”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388126 892 flags.go:27] FLAG: --system-reserved-cgroup=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388130 892 flags.go:27] FLAG: --tls-cert-file=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388133 892 flags.go:27] FLAG: --tls-cipher-suites="[]"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388139 892 flags.go:27] FLAG: --tls-min-version=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388143 892 flags.go:27] FLAG: --tls-private-key-file=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388147 892 flags.go:27] FLAG: --v=“2”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388151 892 flags.go:27] FLAG: --version=“false”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388158 892 flags.go:27] FLAG: --vmodule=""
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388162 892 flags.go:27] FLAG: --volume-plugin-dir="/usr/libexec/kubernetes/kubelet-plugins/volume/exec/"
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388167 892 flags.go:27] FLAG: --volume-stats-agg-period=“1m0s”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.388200 892 feature_gate.go:226] feature gates: &{{} map[]}
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.394296 892 mount_linux.go:211] Detected OS with systemd
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.401286 892 server.go:376] Version: v1.10.13
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.401364 892 feature_gate.go:226] feature gates: &{{} map[]}
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.401471 892 plugins.go:89] No cloud provider specified.
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.401484 892 server.go:492] No cloud provider specified: “” from the config file: “”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.405886 892 manager.go:154] cAdvisor running in container: “/sys/fs/cgroup/cpu,cpuacct/system.slice/kubelet.service”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.451347 892 fs.go:142] Filesystem UUIDs: map[58f4e4a0-ffa7-41ba-af81-b3e262b41520:/dev/sdb2 919bf46a-4b59-4174-8bd2-9bb79f13a338:/dev/dm-0 afaad11d-2d58-4e0b-833f-b4829987a94f:/dev/sdb1 bb132ec7-b90e-45cd-8e3b-18539366bbff:/dev/sda1 f284bbf3-95d3-4e93-9a56-3211b11d266b:/dev/sdb3]
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.451372 892 fs.go:143] Filesystem partitions: map[/dev/mapper/vg_centos7-root:{mountpoint:/var/lib/docker/overlay2 major:253 minor:0 fsType:xfs blockSize:0} /dev/sda1:{mountpoint:/boot major:8 minor:1 fsType:xfs blockSize:0} /dev/sdb1:{mountpoint:/boot major:8 minor:17 fsType:ext4 blockSize:0} shm:{mountpoint:/var/lib/docker/containers/adeba09aedfd536835d96f625025697f56d9b9364c769d10fb0c82a4a241a63d/shm major:0 minor:53 fsType:tmpfs blockSize:0} tmpfs:{mountpoint:/dev/shm major:0 minor:18 fsType:tmpfs blockSize:0}]
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.453421 892 manager.go:227] Machine: {NumCores:4 CpuFrequency:2294609 MemoryCapacity:8202760192 HugePages:[{PageSize:1048576 NumPages:0} {PageSize:2048 NumPages:0}] MachineID:bb0609a3ec8f4cbb8c7790c81f212111 SystemUUID:423AA905-8E37-5759-4107-97588B4398DD BootID:20062440-c4d5-46d8-9596-ecc1ec9400a5 Filesystems:[{Device:tmpfs DeviceMajor:0 DeviceMinor:18 Capacity:4101378048 Type:vfs Inodes:1001313 HasInodes:true} {Device:/dev/mapper/vg_centos7-root DeviceMajor:253 DeviceMinor:0 Capacity:53447073792 Type:vfs Inodes:26109952 HasInodes:true} {Device:/dev/sda1 DeviceMajor:8 DeviceMinor:1 Capacity:10185678848 Type:vfs Inodes:640848 HasInodes:true} {Device:/dev/sdb1 DeviceMajor:8 DeviceMinor:17 Capacity:10185678848 Type:vfs Inodes:640848 HasInodes:true} {Device:shm DeviceMajor:0 DeviceMinor:53 Capacity:67108864 Type:vfs Inodes:1001313 HasInodes:true}] DiskMap:map[253:0:{Name:dm-0 Major:253 Minor:0 Size:53473181696 Scheduler:none} 2:0:{Name:fd0 Major:2 Minor:0 Size:4096 Scheduler:deadline} 8:0:{Name:sda Major:8 Minor:0 Size:53687091200 Scheduler:deadline} 8:16:{Name:sdb Major:8 Minor:16 Size:161061273600 Scheduler:deadline}] NetworkDevices:[{Name:ens160 MacAddress:00:50:56:ba:25:8d Speed:10000 Mtu:1500} {Name:tunl0 MacAddress:00:00:00:00 Speed:0 Mtu:1440}] Topology:[{Id:0 Memory:8589467648 Cores:[{Id:0 Threads:[0] Caches:[]} {Id:1 Threads:[1] Caches:[]}] Caches:[{Size:25952256 Type:Unified Level:3}]} {Id:1 Memory:0 Cores:[{Id:0 Threads:[2] Caches:[]} {Id:1 Threads:[3] Caches:[]}] Caches:[{Size:25952256 Type:Unified Level:3}]}] CloudProvider:Unknown InstanceType:Unknown InstanceID:None}
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.455214 892 manager.go:233] Version: {KernelVersion:3.10.0-693.17.1.el7.x86_64 ContainerOsVersion:CentOS Linux 7 (Core) DockerVersion:1.13.1 DockerAPIVersion:1.26 CadvisorVersion: CadvisorRevision:}
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.455649 892 server.go:614] --cgroups-per-qos enabled, but --cgroup-root was not specified. defaulting to /
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456194 892 container_manager_linux.go:242] container manager verified user specified cgroup-root exists: /
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456209 892 container_manager_linux.go:247] Creating Container Manager object based on Node Config: {RuntimeCgroupsName: SystemCgroupsName: KubeletCgroupsName: ContainerRuntime:docker CgroupsPerQOS:true CgroupRoot:/ CgroupDriver:cgroupfs KubeletRootDir:/var/lib/kubelet ProtectKernelDefaults:false NodeAllocatableConfig:{KubeReservedCgroupName: SystemReservedCgroupName: EnforceNodeAllocatable:map[pods:{}] KubeReserved:map[cpu:{i:{value:300 scale:-3} d:{Dec:} s:300m Format:DecimalSI} memory:{i:{value:536870912 scale:0} d:{Dec:} s: Format:BinarySI} ephemeral-storage:{i:{value:1073741824 scale:0} d:{Dec:} s:1Gi Format:BinarySI}] SystemReserved:map[ephemeral-storage:{i:{value:1073741824 scale:0} d:{Dec:} s:1Gi Format:BinarySI} cpu:{i:{value:700 scale:-3} d:{Dec:} s:700m Format:DecimalSI} memory:{i:{value:1073741824 scale:0} d:{Dec:} s: Format:BinarySI}] HardEvictionThresholds:[{Signal:memory.available Operator:LessThan Value:{Quantity:100Mi Percentage:0} GracePeriod:0s MinReclaim:} {Signal:nodefs.available Operator:LessThan Value:{Quantity: Percentage:0.1} GracePeriod:0s MinReclaim:} {Signal:nodefs.inodesFree Operator:LessThan Value:{Quantity: Percentage:0.05} GracePeriod:0s MinReclaim:} {Signal:imagefs.available Operator:LessThan Value:{Quantity: Percentage:0.15} GracePeriod:0s MinReclaim:}]} ExperimentalQOSReserved:map[] ExperimentalCPUManagerPolicy:none ExperimentalCPUManagerReconcilePeriod:10s ExperimentalPodPidsLimit:-1 EnforceCPULimits:true}
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456335 892 container_manager_linux.go:266] Creating device plugin manager: true
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456346 892 manager.go:102] Creating Device Plugin manager at /var/lib/kubelet/device-plugins/kubelet.sock
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456381 892 state_mem.go:36] [cpumanager] initializing new in-memory state store
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456455 892 state_mem.go:84] [cpumanager] updated default cpuset: “”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456466 892 state_mem.go:92] [cpumanager] updated cpuset assignments: “map[]”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456474 892 state_file.go:119] [cpumanager] state file: restored state from state file “/var/lib/kubelet/cpu_manager_state”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456478 892 state_file.go:120] [cpumanager] state file: defaultCPUSet:
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456521 892 server.go:888] Using root directory: /var/lib/kubelet
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.456542 892 kubelet.go:298] Watching apiserver
Jan 03 17:54:20 KSSYYVI01536 bash[892]: W0103 17:54:20.463241 892 kubelet_network.go:139] Hairpin mode set to “promiscuous-bridge” but kubenet is not enabled, falling back to “hairpin-veth”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.463262 892 kubelet.go:559] Hairpin mode set to “hairpin-veth”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.463473 892 plugins.go:190] Loaded network plugin “cni”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.463510 892 client.go:75] Connecting to docker on unix:///var/run/docker.sock
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.463522 892 client.go:104] Start docker client with request timeout=2m0s
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.471610 892 plugins.go:190] Loaded network plugin “cni”
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.471643 892 docker_service.go:244] Docker cri networking managed by cni
Jan 03 17:54:20 KSSYYVI01536 bash[892]: I0103 17:54:20.490243 892 docker_service.go:249] Docker Info: &{ID:JOEL:REI2:WD7A:6ZKA:ICN6:B2MC:YGYQ:2PRV:4U2W:PAGG:HF75:2R2Y Containers:21 ContainersRunning:21 ContainersPaused:0 ContainersStopped:0 Images:34 Driver:overlay2 DriverStatus:[[Backing Filesystem xfs] [Supports d_type true] [Native Overlay Diff true]] SystemStatus:[] Plugins:{Volume:[local] Network:[bridge host macvlan null overlay] Authorization:[] Log:[]} MemoryLimit:true SwapLimit:true KernelMemory:true CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6tables:true Debug:false NFd:165 OomKillDisable:true NGoroutines:300 SystemTime:2020-01-03T17:54:20.480114045+08:00 LoggingDriver:journald CgroupDriver:systemd NEventsListener:22 KernelVersion:3.10.0-693.17.1.el7.x86_64 OperatingSystem:CentOS Linux 7 (Core) OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:0xc420ae2ee0 NCPU:4 MemTotal:8202760192 GenericResources:[] DockerRootDir:/var/lib/docker HTTPProxy: HTTPSProxy: NoProxy: Name:KSSYYVI01536 Labels:[] ExperimentalBuild:false ServerVersion:1.13.1 ClusterStore: ClusterAdvertise: Runtimes:map[docker-runc:{Path:/usr/libexec/docker/docker-runc-current Args:[]} runc:{Path:docker-runc Args:[]}] DefaultRuntime:docker-runc Swarm:{NodeID: NodeAddr: LocalNodeState:inactive ControlAvailable:false Error: RemoteManagers:[] Nodes:0 Managers:0 Cluster:0xc420a16dc0} LiveRestoreEnabled:false Isolation: InitBinary:/usr/libexec/docker/docker-init-current ContainerdCommit:{ID: Expected:aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1} RuncCommit:{ID:9c3c5f853ebf0ffac0d087e94daef462133b69c7 Expected:9df8b306d01f59d3a8029be411de015b7304dd8f} InitCommit:{ID:fec3683b971d9c3ef73f284f176672c44b448662 Expected:949e6facb77383876aeff8a6944dde66b3089574} SecurityOptions:[name=seccomp,profile=/etc/docker/seccomp.json]}
Jan 03 17:54:20 KSSYYVI01536 bash[892]: F0103 17:54:20.490342 892 server.go:233] failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: “cgroupfs” is different from docker cgroup driver: “systemd”
Jan 03 17:54:20 KSSYYVI01536 systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a
Jan 03 17:54:20 KSSYYVI01536 systemd[1]: Unit kubelet.service entered failed state.
Jan 03 17:54:20 KSSYYVI01536 systemd[1]: kubelet.service failed.

systemctl cat docker 

你应该可以在如图所示的地方,找到更多docker 的配置文件,进去找下

cgroup driver

这样的配置,把值改为 cgroupfs

systemctl daemon-reload
systemctl restart docker

systemctl cat docker执行结果如下:

/usr/lib/systemd/system/docker.service

[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target
Wants=docker-storage-setup.service
Requires=docker-cleanup.timer

[Service]
Type=notify
NotifyAccess=main
EnvironmentFile=-/run/containers/registries.conf
EnvironmentFile=-/etc/sysconfig/docker
EnvironmentFile=-/etc/sysconfig/docker-storage
EnvironmentFile=-/etc/sysconfig/docker-network
Environment=GOTRACEBACK=crash
Environment=DOCKER_HTTP_HOST_COMPAT=1
Environment=PATH=/usr/libexec/docker:/usr/bin:/usr/sbin
ExecStart=/usr/bin/dockerd-current
–add-runtime docker-runc=/usr/libexec/docker/docker-runc-current
–default-runtime=docker-runc
–exec-opt native.cgroupdriver=systemd
–userland-proxy-path=/usr/libexec/docker/docker-proxy-current
–init-path=/usr/libexec/docker/docker-init-current
–seccomp-profile=/etc/docker/seccomp.json
$OPTIONS
$DOCKER_STORAGE_OPTIONS
$DOCKER_NETWORK_OPTIONS
$ADD_REGISTRY
$BLOCK_REGISTRY
$INSECURE_REGISTRY
$REGISTRIES
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
TimeoutStartSec=0
Restart=on-abnormal
KillMode=process

[Install]
WantedBy=multi-user.target

registries.conf没有这个文件
[root@KSSYYVI01536 data]# cat /run/containers/registries.conf
cat: /run/containers/registries.conf: No such file or directory

docker-network内容如下
[root@KSSYYVI01536 data]# cat /etc/sysconfig/docker-network

/etc/sysconfig/docker-network

DOCKER_NETWORK_OPTIONS=

docker-storage内容如下
[root@KSSYYVI01536 data]# cat /etc/sysconfig/docker-storage
DOCKER_STORAGE_OPTIONS="–storage-driver overlay2 "

docker内容如下
[root@KSSYYVI01536 data]# cat /etc/sysconfig/docker

/etc/sysconfig/docker

Modify these options if you want to change the way the docker daemon runs

OPTIONS=’–selinux-enabled --log-driver=journald --signature-verification=false’
if [ -z “${DOCKER_CERT_PATH}” ]; then
DOCKER_CERT_PATH=/etc/docker
fi

Do not add registries in this file anymore. Use /etc/containers/registries.conf

instead. For more information reference the registries.conf(5) man page.

Location used for temporary files, such as those created by

docker load and build operations. Default is /var/lib/docker/tmp

Can be overriden by setting the following environment variable.

DOCKER_TMPDIR=/var/tmp

Controls the /etc/cron.daily/docker-logrotate cron job status.

To disable, uncomment the line below.

LOGROTATE=false

docker-latest daemon can be used by starting the docker-latest unitfile.

To use docker-latest client, uncomment below lines

#DOCKERBINARY=/usr/bin/docker-latest
#DOCKERDBINARY=/usr/bin/dockerd-latest
#DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
#DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest


帮你找了个链接,里面更详细


这里从journald改成cgroupfs以后

systemctl daemon-reload
systemctl restart docker

然后rbd-api起不来了,报错如下

兄弟~ 你要改的是 cgroup driver 不是 log driver

找不到cgroup driver,就改了 log driver试试,,,
最后重置了节点,重新安装了