Openshift 错误解决 "修改cgroup driver"

openshift version
openshift v3.6.0+c4dd4cf
kubernetes v1.6.1+5115d708d7
etcd 3.2.1

cat /etc/redhat-release

CentOS Linux release 7.3.1611 (Core)

docker version:

[root@master ~]# docker version
Client:
 Version:       17.12.0-ce-rc3
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    80c8033
 Built: Thu Dec 14 00:40:35 2017
 OS/Arch:       linux/amd64

Server:
 Engine:
  Version:      17.12.0-ce-rc3
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.2
  Git commit:   80c8033
  Built:        Thu Dec 14 00:43:11 2017
  OS/Arch:      linux/amd64
  Experimental: false
[root@master ~]#


错误信息

failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: "systemd" is different from docker cgroup driver: "cgroupfs"


解决

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

改为

#ExecStart=/usr/bin/dockerd
ExecStart=/usr/bin/dockerd --exec-opt native.cgroupdriver=systemd


重启docker

systemctl daemon-reload

systemctl restart docker

你可能感兴趣的:(Docker)