2 shandianxiawoshan shandianxiawoshan 于 2017.09.01 17:18 提问

kubernets启动kubelet报错ailed to get docker info

Flag --api-servers has been deprecated, Use --kubeconfig instead. Will be removed in a future version.
I0901 17:00:56.694023 1065 feature_gate.go:144] feature gates: map[]
W0901 17:00:56.694173 1065 server.go:715] Could not load kubeconfig file /var/lib/kubelet/kubeconfig: stat /var/lib/kubelet/kubeconfig: no such file or directory. Using default client config instead.
I0901 17:00:56.694861 1065 docker.go:364] Connecting to docker on unix:///var/run/docker.sock
I0901 17:00:56.694954 1065 docker.go:384] Start docker client with request timeout=2m0s
W0901 17:00:56.700829 1065 cni.go:157] Unable to update cni config: No networks found in /etc/cni/net.d
I0901 17:00:56.709469 1065 manager.go:143] cAdvisor running in container: "/user/0.user/28.session"
W0901 17:00:56.806256 1065 manager.go:147] Unable to connect to Docker: Error reading remote info: json: cannot unmarshal number into Go value of type bool
W0901 17:00:56.806628 1065 manager.go:151] unable to connect to Rkt api service: rkt: cannot tcp Dial rkt api service: dial tcp 127.0.0.1:15441: getsockopt: connection refused
I0901 17:00:56.902984 1065 fs.go:117] Filesystem partitions: map[/dev/vda1:{mountpoint:/ major:253 minor:1 fsType:ext4 blockSize:0} /dev/vdb1:{mountpoint:/software major:253 minor:17 fsType:ext4 blockSize:0}]
I0901 17:00:56.904351 1065 manager.go:198] Machine: {NumCores:1 CpuFrequency:2494222 MemoryCapacity:2097594368 MachineID:272c55bbbdf9d4275d41ef2358aa78bb SystemUUID:2E3135BB-4FBA-4B88-AC69-51A275961102 BootID:d15c2e1b-6d41-46b4-9bb2-bf3a98b71ced Filesystems:[{Device:/dev/vda1 Capacity:42139451392 Type:vfs Inodes:2621440 HasInodes:true} {Device:/dev/vdb1 Capacity:105554149376 Type:vfs Inodes:6553600 HasInodes:true}] DiskMap:map[253:16:{Name:vdb Major:253 Minor:16 Size:107374182400 Scheduler:none} 253:0:{Name:vda Major:253 Minor:0 Size:42949672960 Scheduler:none}] NetworkDevices:[{Name:eth0 MacAddress:00:16:3e:13:11:da Speed:-1 Mtu:1500} {Name:eth1 MacAddress:00:16:3e:12:5e:54 Speed:-1 Mtu:1500}] Topology:[{Id:0 Memory:2097594368 Cores:[{Id:0 Threads:[0] Caches:[{Size:32768 Type:Data Level:1} {Size:32768 Type:Instruction Level:1} {Size:262144 Type:Unified Level:2}]}] Caches:[{Size:41943040 Type:Unified Level:3}]}] CloudProvider:Unknown InstanceType:Unknown InstanceID:None}
I0901 17:00:56.905069 1065 manager.go:204] Version: {KernelVersion:4.4.0-63-generic ContainerOsVersion:Ubuntu 14.04.5 LTS DockerVersion:1.6.2 CadvisorVersion: CadvisorRevision:}
I0901 17:00:56.905730 1065 server.go:509] --cgroups-per-qos enabled, but --cgroup-root was not specified. defaulting to /
I0901 17:00:56.907825 1065 container_manager_linux.go:245] container manager verified user specified cgroup-root exists: /
I0901 17:00:56.907918 1065 container_manager_linux.go:250] Creating Container Manager object based on Node Config: {RuntimeCgroupsName: SystemCgroupsName: KubeletCgroupsName: ContainerRuntime:docker CgroupsPerQOS:true CgroupRoot:/ CgroupDriver:cgroupfs ProtectKernelDefaults:false EnableCRI:true NodeAllocatableConfig:{KubeReservedCgroupName: SystemReservedCgroupName: EnforceNodeAllocatable:map[pods:{}] KubeReserved:map[] SystemReserved:map[] HardEvictionThresholds:[{Signal:memory.available Operator:LessThan Value:{Quantity:100Mi Percentage:0} GracePeriod:0s MinReclaim:}]} ExperimentalQOSReserved:map[]}
I0901 17:00:56.909468 1065 kubelet.go:265] Watching apiserver
W0901 17:00:56.920834 1065 kubelet_network.go:70] Hairpin mode set to "promiscuous-bridge" but kubenet is not enabled, falling back to "hairpin-veth"
I0901 17:00:56.920947 1065 kubelet.go:494] Hairpin mode set to "hairpin-veth"
W0901 17:00:56.922725 1065 cni.go:157] Unable to update cni config: No networks found in /etc/cni/net.d
I0901 17:00:56.930010 1065 docker_service.go:187] Docker cri networking managed by kubernetes.io/no-op
E0901 17:00:57.028104 1065 docker_service.go:193] Failed to execute Info() call to the Docker client: Error reading remote info: json: cannot unmarshal number into Go value of type bool
W0901 17:00:57.028123 1065 docker_service.go:194] Falling back to use the default driver: "cgroupfs"
I0901 17:00:57.028130 1065 docker_service.go:204] Setting cgroupDriver to cgroupfs
error: failed to run Kubelet: failed to create kubelet: failed to get docker info: Error reading remote info: json: cannot unmarshal number into Go value of type bool

kubernets启动kubelet 报错error: failed to run Kubelet: failed to create kubelet: failed to get docker info: Error reading remote info: json: cannot unmarshal number into Go value of type bool
但是我的docker正常启动着
图片说明

Csdn user default icon
上传中...
上传图片
插入图片