相关疑难解决方法(0)

我无法启动 Minikube

我已经安装了 Minikube,但是当我运行时minikube start,出现以下错误:

\n
  minikube v1.17.1 on Ubuntu 20.04\n\xe2\x9c\xa8  Using the docker driver based on existing profile\n  Starting control plane node minikube in cluster minikube\n  Updating the running docker "minikube" container ...\n  Preparing Kubernetes v1.20.2 on Docker 20.10.0 ...\n  Unable to restart cluster, will reset it: apiserver healthz: apiserver process never appeared\n    \xe2\x96\xaa Generating certificates and keys ...\n    \xe2\x96\xaa Booting up control plane ...\n  initialization failed, will try again: wait: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.20.2:$PATH kubeadm init --config …
Run Code Online (Sandbox Code Playgroud)

ubuntu docker kubernetes minikube

17
推荐指数
2
解决办法
1万
查看次数

docker将cgroup驱动程序更改为systemd

我想让docker从systemd cgroup驱动程序开始。由于某些原因,它仅在我的centos 7服务器上使用cgroupfs。

这是启动配置文件。

# 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=all
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 \
          $OPTIONS \
          $DOCKER_STORAGE_OPTIONS \
          $DOCKER_NETWORK_OPTIONS \
          $ADD_REGISTRY \
          $BLOCK_REGISTRY \
          $INSECURE_REGISTRY
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
TimeoutStartSec=0
Restart=on-abnormal
MountFlags=slave

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/docker.service.d/docker-thinpool.conf
 [Service]
 ExecStart=
 ExecStart=/usr/bin/dockerd --storage-driver=devicemapper --storage-opt=dm.thinpooldev=/dev/mapper/docker-thinpool \
 --storage-opt=dm.use_deferred_removal=true --storage-opt=dm.use_deferred_deletion=true
 EOF
Run Code Online (Sandbox Code Playgroud)

当启动docker这样运行时:

# ps -fed |grep docker …
Run Code Online (Sandbox Code Playgroud)

linux docker

4
推荐指数
3
解决办法
1万
查看次数

标签 统计

docker ×2

kubernetes ×1

linux ×1

minikube ×1

ubuntu ×1