Xshell 5 (Build 1199)
Copyright (c) 2002-2017 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
[c:\~]$
Connecting to 192.168.182.88:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Last login: Tue May 12 13:30:31 2020 from 192.168.182.1
[root@minikube ~]# ls
anaconda-ks.cfg kubectl minikube-linux-amd64
[root@minikube ~]# chmod +x ./kubectl
[root@minikube ~]# mv ./kubectl /usr/local/bin/kubectl
[root@minikube ~]# kubectl version --client
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
[root@minikube ~]# ls
anaconda-ks.cfg minikube-linux-amd64
[root@minikube ~]# mv minikube-linux-amd64 minikube
[root@minikube ~]# chmod +x minikube
[root@minikube ~]# mv minikube /usr/local/bin/minikube
[root@minikube ~]# minikube -v
Error: flag needs an argument: 'v' in -v
See 'minikube --help' for usage.
[root@minikube ~]# minikube --help
minikube provisions and manages local Kubernetes clusters optimized for development workflows.
基本指令:
start Starts a local Kubernetes cluster
status Gets the status of a local Kubernetes cluster
stop Stops a running local Kubernetes cluster
delete Deletes a local Kubernetes cluster
dashboard Access the Kubernetes dashboard running within the minikube cluster
pause pause Kubernetes
unpause 恢複 Kubernetes
Images Commands:
docker-env Configure environment to use minikube's Docker daemon
podman-env Configure environment to use minikube's Podman service
cache Add, delete, or push a local image into minikube
配置和管理指令:
addons Enable or disable a minikube addon
config Modify persistent configuration values
profile Get or list the the current profiles (clusters)
update-context Update kubeconfig in case of an IP or port change
網絡和連接配接指令:
service Returns a URL to connect to a service
tunnel Connect to LoadBalancer services
進階指令:
mount 将指定的目錄挂載到 minikube
ssh Log into the minikube environment (for debugging)
kubectl Run a kubectl binary matching the cluster version
node Add, remove, or list additional nodes
故障排除指令ƒ
ssh-key 檢索指定叢集的 ssh 密鑰路徑
ip 檢索正在運作的群集的 IP 位址
logs Returns logs to debug a local Kubernetes cluster
update-check 列印目前和最新版本版本
version 列印 minikube 版本
Other Commands:
completion Generate command completion for a shell
Use "minikube <command> --help" for more information about a given command.
[root@minikube ~]# minikube start
* Centos 7.3.1611 上的 minikube v1.10.0
* Unable to pick a default driver. Here is what was considered, in preference order:
- virtualbox: Not installed: unable to find VBoxManage in $PATH
- vmware: Not installed: exec: "docker-machine-driver-vmware": executable file not found in $PATH
- docker: Not installed: exec: "docker": executable file not found in $PATH
- kvm2: Not installed: exec: "virsh": executable file not found in $PATH
- none: Not installed: exec: "docker": executable file not found in $PATH
- podman: Not installed: exec: "podman": executable file not found in $PATH
- Try specifying a --driver, or see https://minikube.sigs.k8s.io/docs/start/
[root@minikube ~]# minikube start --driver=docker-machine-driver-vmware
* Centos 7.3.1611 上的 minikube v1.10.0
X linux 不支援驅動程式“docker-machine-driver-vmware”
[root@minikube ~]# minikube start --driver=none
* Centos 7.3.1611 上的 minikube v1.10.0
* 根據使用者配置使用 none 驅動程式
! 'none' 驅動程式報告了一個問題: exec: "docker": executable file not found in $PATH
* 建議:Install docker
* 文檔:https://minikube.sigs.k8s.io/docs/reference/drivers/none/
X 似乎并未安裝 none
[root@minikube ~]# yum install docker
已加載插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.bfsu.edu.cn
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 docker.x86_64.2.1.13.1-161.git64e9980.el7_8 将被 安裝
--> 正在處理依賴關系 docker-common = 2:1.13.1-161.git64e9980.el7_8,它被軟體包 2:docker-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 docker-client = 2:1.13.1-161.git64e9980.el7_8,它被軟體包 2:docker-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 subscription-manager-rhsm-certificates,它被軟體包 2:docker-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 libseccomp.so.2()(64bit),它被軟體包 2:docker-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在檢查事務
---> 軟體包 docker-client.x86_64.2.1.13.1-161.git64e9980.el7_8 将被 安裝
---> 軟體包 docker-common.x86_64.2.1.13.1-161.git64e9980.el7_8 将被 安裝
--> 正在處理依賴關系 skopeo-containers >= 1:0.1.26-2,它被軟體包 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 oci-umount >= 2:2.3.3-3,它被軟體包 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 oci-systemd-hook >= 1:0.1.4-9,它被軟體包 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 oci-register-machine >= 1:0-5.13,它被軟體包 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 container-storage-setup >= 0.9.0-1,它被軟體包 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 container-selinux >= 2:2.51-1,它被軟體包 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在處理依賴關系 atomic-registries,它被軟體包 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 需要
---> 軟體包 libseccomp.x86_64.0.2.3.1-4.el7 将被 安裝
---> 軟體包 subscription-manager-rhsm-certificates.x86_64.0.1.24.26-1.el7.centos 将被 安裝
--> 正在檢查事務
---> 軟體包 atomic-registries.x86_64.1.1.22.1-33.gitb507039.el7_8 将被 安裝
--> 正在處理依賴關系 python-yaml,它被軟體包 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 需要
--> 正在處理依賴關系 python-setuptools,它被軟體包 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 需要
--> 正在處理依賴關系 python-pytoml,它被軟體包 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 需要
---> 軟體包 container-selinux.noarch.2.2.119.1-1.c57a6f9.el7 将被 安裝
--> 正在處理依賴關系 selinux-policy-targeted >= 3.13.1-216.el7,它被軟體包 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 需要
--> 正在處理依賴關系 selinux-policy-base >= 3.13.1-216.el7,它被軟體包 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 需要
--> 正在處理依賴關系 selinux-policy >= 3.13.1-216.el7,它被軟體包 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 需要
--> 正在處理依賴關系 policycoreutils >= 2.5-11,它被軟體包 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 需要
--> 正在處理依賴關系 policycoreutils-python,它被軟體包 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 需要
---> 軟體包 container-storage-setup.noarch.0.0.11.0-2.git5eaf76c.el7 将被 安裝
---> 軟體包 containers-common.x86_64.1.0.1.40-7.el7_8 将被 安裝
--> 正在處理依賴關系 subscription-manager,它被軟體包 1:containers-common-0.1.40-7.el7_8.x86_64 需要
--> 正在處理依賴關系 slirp4netns,它被軟體包 1:containers-common-0.1.40-7.el7_8.x86_64 需要
--> 正在處理依賴關系 fuse-overlayfs,它被軟體包 1:containers-common-0.1.40-7.el7_8.x86_64 需要
---> 軟體包 oci-register-machine.x86_64.1.0-6.git2b44233.el7 将被 安裝
---> 軟體包 oci-systemd-hook.x86_64.1.0.2.0-1.git05e6923.el7_6 将被 安裝
--> 正在處理依賴關系 libyajl.so.2()(64bit),它被軟體包 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64 需要
---> 軟體包 oci-umount.x86_64.2.2.5-3.el7 将被 安裝
--> 正在檢查事務
---> 軟體包 PyYAML.x86_64.0.3.10-11.el7 将被 安裝
--> 正在處理依賴關系 libyaml-0.so.2()(64bit),它被軟體包 PyYAML-3.10-11.el7.x86_64 需要
---> 軟體包 fuse-overlayfs.x86_64.0.0.7.2-6.el7_8 将被 安裝
--> 正在處理依賴關系 libfuse3.so.3(FUSE_3.2)(64bit),它被軟體包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在處理依賴關系 libfuse3.so.3(FUSE_3.0)(64bit),它被軟體包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
--> 正在處理依賴關系 libfuse3.so.3()(64bit),它被軟體包 fuse-overlayfs-0.7.2-6.el7_8.x86_64 需要
---> 軟體包 policycoreutils.x86_64.0.2.5-8.el7 将被 更新
---> 軟體包 policycoreutils.x86_64.0.2.5-34.el7 将被 更新
--> 正在處理依賴關系 libsepol >= 2.5-10,它被軟體包 policycoreutils-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libsemanage >= 2.5-14,它被軟體包 policycoreutils-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libselinux-utils >= 2.5-14,它被軟體包 policycoreutils-2.5-34.el7.x86_64 需要
---> 軟體包 policycoreutils-python.x86_64.0.2.5-34.el7 将被 安裝
--> 正在處理依賴關系 setools-libs >= 3.3.8-4,它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libsemanage-python >= 2.5-14,它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 audit-libs-python >= 2.1.3-4,它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 python-IPy,它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libqpol.so.1(VERS_1.4)(64bit),它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libqpol.so.1(VERS_1.2)(64bit),它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libcgroup,它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libapol.so.4(VERS_4.0)(64bit),它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 checkpolicy,它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libqpol.so.1()(64bit),它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
--> 正在處理依賴關系 libapol.so.4()(64bit),它被軟體包 policycoreutils-python-2.5-34.el7.x86_64 需要
---> 軟體包 python-pytoml.noarch.0.0.1.14-1.git7dea353.el7 将被 安裝
---> 軟體包 python-setuptools.noarch.0.0.9.8-7.el7 将被 安裝
--> 正在處理依賴關系 python-backports-ssl_match_hostname,它被軟體包 python-setuptools-0.9.8-7.el7.noarch 需要
---> 軟體包 selinux-policy.noarch.0.3.13.1-102.el7 将被 更新
---> 軟體包 selinux-policy.noarch.0.3.13.1-266.el7 将被 更新
---> 軟體包 selinux-policy-targeted.noarch.0.3.13.1-102.el7 将被 更新
---> 軟體包 selinux-policy-targeted.noarch.0.3.13.1-266.el7 将被 更新
---> 軟體包 slirp4netns.x86_64.0.0.4.3-4.el7_8 将被 安裝
---> 軟體包 subscription-manager.x86_64.0.1.24.26-1.el7.centos 将被 安裝
--> 正在處理依賴關系 subscription-manager-rhsm = 1.24.26,它被軟體包 subscription-manager-1.24.26-1.el7.centos.x86_64 需要
--> 正在處理依賴關系 python-dmidecode >= 3.12.2-2,它被軟體包 subscription-manager-1.24.26-1.el7.centos.x86_64 需要
--> 正在處理依賴關系 usermode,它被軟體包 subscription-manager-1.24.26-1.el7.centos.x86_64 需要
--> 正在處理依賴關系 python-syspurpose,它被軟體包 subscription-manager-1.24.26-1.el7.centos.x86_64 需要
--> 正在處理依賴關系 python-six,它被軟體包 subscription-manager-1.24.26-1.el7.centos.x86_64 需要
--> 正在處理依賴關系 python-inotify,它被軟體包 subscription-manager-1.24.26-1.el7.centos.x86_64 需要
--> 正在處理依賴關系 python-ethtool,它被軟體包 subscription-manager-1.24.26-1.el7.centos.x86_64 需要
--> 正在處理依賴關系 python-dateutil,它被軟體包 subscription-manager-1.24.26-1.el7.centos.x86_64 需要
---> 軟體包 yajl.x86_64.0.2.0.4-4.el7 将被 安裝
--> 正在檢查事務
---> 軟體包 audit-libs-python.x86_64.0.2.8.5-4.el7 将被 安裝
--> 正在處理依賴關系 audit-libs(x86-64) = 2.8.5-4.el7,它被軟體包 audit-libs-python-2.8.5-4.el7.x86_64 需要
---> 軟體包 checkpolicy.x86_64.0.2.5-8.el7 将被 安裝
---> 軟體包 fuse3-libs.x86_64.0.3.6.1-4.el7 将被 安裝
---> 軟體包 libcgroup.x86_64.0.0.41-21.el7 将被 安裝
---> 軟體包 libselinux-utils.x86_64.0.2.5-6.el7 将被 更新
---> 軟體包 libselinux-utils.x86_64.0.2.5-15.el7 将被 更新
--> 正在處理依賴關系 libselinux(x86-64) = 2.5-15.el7,它被軟體包 libselinux-utils-2.5-15.el7.x86_64 需要
---> 軟體包 libsemanage.x86_64.0.2.5-4.el7 将被 更新
---> 軟體包 libsemanage.x86_64.0.2.5-14.el7 将被 更新
---> 軟體包 libsemanage-python.x86_64.0.2.5-14.el7 将被 安裝
---> 軟體包 libsepol.x86_64.0.2.5-6.el7 将被 更新
---> 軟體包 libsepol.x86_64.0.2.5-10.el7 将被 更新
---> 軟體包 libyaml.x86_64.0.0.1.4-11.el7_0 将被 安裝
---> 軟體包 python-IPy.noarch.0.0.75-6.el7 将被 安裝
---> 軟體包 python-backports-ssl_match_hostname.noarch.0.3.5.0.1-1.el7 将被 安裝
--> 正在處理依賴關系 python-ipaddress,它被軟體包 python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 需要
--> 正在處理依賴關系 python-backports,它被軟體包 python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 需要
---> 軟體包 python-dateutil.noarch.0.1.5-7.el7 将被 安裝
---> 軟體包 python-dmidecode.x86_64.0.3.12.2-4.el7 将被 安裝
--> 正在處理依賴關系 libxml2-python,它被軟體包 python-dmidecode-3.12.2-4.el7.x86_64 需要
--> 正在處理依賴關系 libxml2mod.so()(64bit),它被軟體包 python-dmidecode-3.12.2-4.el7.x86_64 需要
---> 軟體包 python-ethtool.x86_64.0.0.8-8.el7 将被 安裝
--> 正在處理依賴關系 libnl.so.1()(64bit),它被軟體包 python-ethtool-0.8-8.el7.x86_64 需要
---> 軟體包 python-inotify.noarch.0.0.9.4-4.el7 将被 安裝
---> 軟體包 python-six.noarch.0.1.9.0-2.el7 将被 安裝
---> 軟體包 python-syspurpose.x86_64.0.1.24.26-1.el7.centos 将被 安裝
---> 軟體包 setools-libs.x86_64.0.3.3.8-4.el7 将被 安裝
---> 軟體包 subscription-manager-rhsm.x86_64.0.1.24.26-1.el7.centos 将被 安裝
---> 軟體包 usermode.x86_64.0.1.111-6.el7 将被 安裝
--> 正在檢查事務
---> 軟體包 audit-libs.x86_64.0.2.6.5-3.el7 将被 更新
--> 正在處理依賴關系 audit-libs(x86-64) = 2.6.5-3.el7,它被軟體包 audit-2.6.5-3.el7.x86_64 需要
---> 軟體包 audit-libs.x86_64.0.2.8.5-4.el7 将被 更新
---> 軟體包 libnl.x86_64.0.1.1.4-3.el7 将被 安裝
---> 軟體包 libselinux.x86_64.0.2.5-6.el7 将被 更新
--> 正在處理依賴關系 libselinux(x86-64) = 2.5-6.el7,它被軟體包 libselinux-python-2.5-6.el7.x86_64 需要
---> 軟體包 libselinux.x86_64.0.2.5-15.el7 将被 更新
---> 軟體包 libxml2-python.x86_64.0.2.9.1-6.el7.4 将被 安裝
--> 正在處理依賴關系 libxml2 = 2.9.1-6.el7.4,它被軟體包 libxml2-python-2.9.1-6.el7.4.x86_64 需要
---> 軟體包 python-backports.x86_64.0.1.0-8.el7 将被 安裝
---> 軟體包 python-ipaddress.noarch.0.1.0.16-2.el7 将被 安裝
--> 正在檢查事務
---> 軟體包 audit.x86_64.0.2.6.5-3.el7 将被 更新
---> 軟體包 audit.x86_64.0.2.8.5-4.el7 将被 更新
---> 軟體包 libselinux-python.x86_64.0.2.5-6.el7 将被 更新
---> 軟體包 libselinux-python.x86_64.0.2.5-15.el7 将被 更新
---> 軟體包 libxml2.x86_64.0.2.9.1-6.el7_2.3 将被 更新
---> 軟體包 libxml2.x86_64.0.2.9.1-6.el7.4 将被 更新
--> 解決依賴關系完成
依賴關系解決
===========================================================================================================================================================================
Package 架構 版本 源 大小
===========================================================================================================================================================================
正在安裝:
docker x86_64 2:1.13.1-161.git64e9980.el7_8 extras 18 M
為依賴而安裝:
PyYAML x86_64 3.10-11.el7 base 153 k
atomic-registries x86_64 1:1.22.1-33.gitb507039.el7_8 extras 36 k
audit-libs-python x86_64 2.8.5-4.el7 base 76 k
checkpolicy x86_64 2.5-8.el7 base 295 k
container-selinux noarch 2:2.119.1-1.c57a6f9.el7 extras 40 k
container-storage-setup noarch 0.11.0-2.git5eaf76c.el7 extras 35 k
containers-common x86_64 1:0.1.40-7.el7_8 extras 42 k
docker-client x86_64 2:1.13.1-161.git64e9980.el7_8 extras 3.9 M
docker-common x86_64 2:1.13.1-161.git64e9980.el7_8 extras 99 k
fuse-overlayfs x86_64 0.7.2-6.el7_8 extras 54 k
fuse3-libs x86_64 3.6.1-4.el7 extras 82 k
libcgroup x86_64 0.41-21.el7 base 66 k
libnl x86_64 1.1.4-3.el7 base 128 k
libseccomp x86_64 2.3.1-4.el7 base 56 k
libsemanage-python x86_64 2.5-14.el7 base 113 k
libxml2-python x86_64 2.9.1-6.el7.4 base 247 k
libyaml x86_64 0.1.4-11.el7_0 base 55 k
oci-register-machine x86_64 1:0-6.git2b44233.el7 extras 1.1 M
oci-systemd-hook x86_64 1:0.2.0-1.git05e6923.el7_6 extras 34 k
oci-umount x86_64 2:2.5-3.el7 extras 33 k
policycoreutils-python x86_64 2.5-34.el7 base 457 k
python-IPy noarch 0.75-6.el7 base 32 k
python-backports x86_64 1.0-8.el7 base 5.8 k
python-backports-ssl_match_hostname noarch 3.5.0.1-1.el7 base 13 k
python-dateutil noarch 1.5-7.el7 base 85 k
python-dmidecode x86_64 3.12.2-4.el7 base 83 k
python-ethtool x86_64 0.8-8.el7 base 34 k
python-inotify noarch 0.9.4-4.el7 base 49 k
python-ipaddress noarch 1.0.16-2.el7 base 34 k
python-pytoml noarch 0.1.14-1.git7dea353.el7 extras 18 k
python-setuptools noarch 0.9.8-7.el7 base 397 k
python-six noarch 1.9.0-2.el7 base 29 k
python-syspurpose x86_64 1.24.26-1.el7.centos base 269 k
setools-libs x86_64 3.3.8-4.el7 base 620 k
slirp4netns x86_64 0.4.3-4.el7_8 extras 81 k
subscription-manager x86_64 1.24.26-1.el7.centos base 1.1 M
subscription-manager-rhsm x86_64 1.24.26-1.el7.centos base 327 k
subscription-manager-rhsm-certificates x86_64 1.24.26-1.el7.centos base 231 k
usermode x86_64 1.111-6.el7 base 193 k
yajl x86_64 2.0.4-4.el7 base 39 k
為依賴而更新:
audit x86_64 2.8.5-4.el7 base 256 k
audit-libs x86_64 2.8.5-4.el7 base 102 k
libselinux x86_64 2.5-15.el7 base 162 k
libselinux-python x86_64 2.5-15.el7 base 236 k
libselinux-utils x86_64 2.5-15.el7 base 151 k
libsemanage x86_64 2.5-14.el7 base 151 k
libsepol x86_64 2.5-10.el7 base 297 k
libxml2 x86_64 2.9.1-6.el7.4 base 668 k
policycoreutils x86_64 2.5-34.el7 base 917 k
selinux-policy noarch 3.13.1-266.el7 base 497 k
selinux-policy-targeted noarch 3.13.1-266.el7 base 7.0 M
事務概要
===========================================================================================================================================================================
安裝 1 軟體包 (+40 依賴軟體包)
更新 ( 11 依賴軟體包)
總下載下傳量:39 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/52): PyYAML-3.10-11.el7.x86_64.rpm | 153 kB 00:00:01
(2/52): audit-2.8.5-4.el7.x86_64.rpm | 256 kB 00:00:01
(3/52): atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64.rpm | 36 kB 00:00:01
(4/52): audit-libs-2.8.5-4.el7.x86_64.rpm | 102 kB 00:00:00
(5/52): audit-libs-python-2.8.5-4.el7.x86_64.rpm | 76 kB 00:00:00
(6/52): checkpolicy-2.5-8.el7.x86_64.rpm | 295 kB 00:00:00
(7/52): container-selinux-2.119.1-1.c57a6f9.el7.noarch.rpm | 40 kB 00:00:00
(8/52): containers-common-0.1.40-7.el7_8.x86_64.rpm | 42 kB 00:00:00
(9/52): container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch.rpm | 35 kB 00:00:00
(10/52): docker-client-1.13.1-161.git64e9980.el7_8.x86_64.rpm | 3.9 MB 00:00:02
(11/52): docker-common-1.13.1-161.git64e9980.el7_8.x86_64.rpm | 99 kB 00:00:00
(12/52): fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm | 54 kB 00:00:00
(13/52): fuse3-libs-3.6.1-4.el7.x86_64.rpm | 82 kB 00:00:00
(14/52): libcgroup-0.41-21.el7.x86_64.rpm | 66 kB 00:00:00
(15/52): libseccomp-2.3.1-4.el7.x86_64.rpm | 56 kB 00:00:00
(16/52): libnl-1.1.4-3.el7.x86_64.rpm | 128 kB 00:00:00
(17/52): libselinux-2.5-15.el7.x86_64.rpm | 162 kB 00:00:00
(18/52): libselinux-python-2.5-15.el7.x86_64.rpm | 236 kB 00:00:00
(19/52): libselinux-utils-2.5-15.el7.x86_64.rpm | 151 kB 00:00:00
(20/52): libsemanage-python-2.5-14.el7.x86_64.rpm | 113 kB 00:00:00
(21/52): libsemanage-2.5-14.el7.x86_64.rpm | 151 kB 00:00:00
(22/52): libsepol-2.5-10.el7.x86_64.rpm | 297 kB 00:00:00
(23/52): libxml2-python-2.9.1-6.el7.4.x86_64.rpm | 247 kB 00:00:00
(24/52): libyaml-0.1.4-11.el7_0.x86_64.rpm | 55 kB 00:00:00
(25/52): libxml2-2.9.1-6.el7.4.x86_64.rpm | 668 kB 00:00:00
(26/52): oci-register-machine-0-6.git2b44233.el7.x86_64.rpm | 1.1 MB 00:00:00
(27/52): oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64.rpm | 34 kB 00:00:00
(28/52): oci-umount-2.5-3.el7.x86_64.rpm | 33 kB 00:00:00
(29/52): policycoreutils-python-2.5-34.el7.x86_64.rpm | 457 kB 00:00:00
(30/52): python-IPy-0.75-6.el7.noarch.rpm | 32 kB 00:00:00
(31/52): policycoreutils-2.5-34.el7.x86_64.rpm | 917 kB 00:00:00
(32/52): python-backports-1.0-8.el7.x86_64.rpm | 5.8 kB 00:00:00
(33/52): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm | 13 kB 00:00:00
(34/52): python-dateutil-1.5-7.el7.noarch.rpm | 85 kB 00:00:00
(35/52): python-dmidecode-3.12.2-4.el7.x86_64.rpm | 83 kB 00:00:00
(36/52): python-ethtool-0.8-8.el7.x86_64.rpm | 34 kB 00:00:00
(37/52): python-inotify-0.9.4-4.el7.noarch.rpm | 49 kB 00:00:00
(38/52): python-ipaddress-1.0.16-2.el7.noarch.rpm | 34 kB 00:00:00
(39/52): python-six-1.9.0-2.el7.noarch.rpm | 29 kB 00:00:00
(40/52): python-pytoml-0.1.14-1.git7dea353.el7.noarch.rpm | 18 kB 00:00:00
(41/52): python-setuptools-0.9.8-7.el7.noarch.rpm | 397 kB 00:00:00
(42/52): python-syspurpose-1.24.26-1.el7.centos.x86_64.rpm | 269 kB 00:00:00
(43/52): selinux-policy-3.13.1-266.el7.noarch.rpm | 497 kB 00:00:00
(44/52): slirp4netns-0.4.3-4.el7_8.x86_64.rpm | 81 kB 00:00:00
(45/52): setools-libs-3.3.8-4.el7.x86_64.rpm | 620 kB 00:00:01
(46/52): subscription-manager-1.24.26-1.el7.centos.x86_64.rpm | 1.1 MB 00:00:05
(47/52): subscription-manager-rhsm-1.24.26-1.el7.centos.x86_64.rpm | 327 kB 00:00:00
(48/52): docker-1.13.1-161.git64e9980.el7_8.x86_64.rpm | 18 MB 00:00:14
(49/52): subscription-manager-rhsm-certificates-1.24.26-1.el7.centos.x86_64.rpm | 231 kB 00:00:00
(50/52): usermode-1.111-6.el7.x86_64.rpm | 193 kB 00:00:00
(51/52): yajl-2.0.4-4.el7.x86_64.rpm | 39 kB 00:00:00
(52/52): selinux-policy-targeted-3.13.1-266.el7.noarch.rpm | 7.0 MB 00:00:08
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
總計 2.2 MB/s | 39 MB 00:00:17
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : libsepol-2.5-10.el7.x86_64 1/63
正在更新 : libselinux-2.5-15.el7.x86_64 2/63
正在更新 : audit-libs-2.8.5-4.el7.x86_64 3/63
正在更新 : libsemanage-2.5-14.el7.x86_64 4/63
正在更新 : libxml2-2.9.1-6.el7.4.x86_64 5/63
正在更新 : libselinux-utils-2.5-15.el7.x86_64 6/63
正在更新 : policycoreutils-2.5-34.el7.x86_64 7/63
正在更新 : selinux-policy-3.13.1-266.el7.noarch 8/63
正在安裝 : subscription-manager-rhsm-certificates-1.24.26-1.el7.centos.x86_64 9/63
正在安裝 : python-six-1.9.0-2.el7.noarch 10/63
正在安裝 : yajl-2.0.4-4.el7.x86_64 11/63
正在安裝 : libseccomp-2.3.1-4.el7.x86_64 12/63
正在安裝 : python-dateutil-1.5-7.el7.noarch 13/63
正在安裝 : subscription-manager-rhsm-1.24.26-1.el7.centos.x86_64 14/63
正在安裝 : slirp4netns-0.4.3-4.el7_8.x86_64 15/63
正在安裝 : 2:oci-umount-2.5-3.el7.x86_64 16/63
正在安裝 : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64 17/63
正在更新 : selinux-policy-targeted-3.13.1-266.el7.noarch 18/63
正在安裝 : libxml2-python-2.9.1-6.el7.4.x86_64 19/63
正在安裝 : python-dmidecode-3.12.2-4.el7.x86_64 20/63
正在安裝 : setools-libs-3.3.8-4.el7.x86_64 21/63
正在安裝 : libsemanage-python-2.5-14.el7.x86_64 22/63
正在安裝 : audit-libs-python-2.8.5-4.el7.x86_64 23/63
正在更新 : libselinux-python-2.5-15.el7.x86_64 24/63
正在安裝 : usermode-1.111-6.el7.x86_64 25/63
正在安裝 : libcgroup-0.41-21.el7.x86_64 26/63
正在安裝 : python-ipaddress-1.0.16-2.el7.noarch 27/63
正在安裝 : libnl-1.1.4-3.el7.x86_64 28/63
正在安裝 : python-ethtool-0.8-8.el7.x86_64 29/63
正在安裝 : libyaml-0.1.4-11.el7_0.x86_64 30/63
正在安裝 : PyYAML-3.10-11.el7.x86_64 31/63
正在安裝 : python-backports-1.0-8.el7.x86_64 32/63
正在安裝 : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 33/63
正在安裝 : python-setuptools-0.9.8-7.el7.noarch 34/63
正在安裝 : 1:oci-register-machine-0-6.git2b44233.el7.x86_64 35/63
正在安裝 : fuse3-libs-3.6.1-4.el7.x86_64 36/63
正在安裝 : fuse-overlayfs-0.7.2-6.el7_8.x86_64 37/63
正在安裝 : python-pytoml-0.1.14-1.git7dea353.el7.noarch 38/63
正在安裝 : 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 39/63
正在安裝 : python-IPy-0.75-6.el7.noarch 40/63
正在安裝 : checkpolicy-2.5-8.el7.x86_64 41/63
正在安裝 : policycoreutils-python-2.5-34.el7.x86_64 42/63
正在安裝 : 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 43/63
正在安裝 : python-syspurpose-1.24.26-1.el7.centos.x86_64 44/63
正在安裝 : python-inotify-0.9.4-4.el7.noarch 45/63
正在安裝 : subscription-manager-1.24.26-1.el7.centos.x86_64 46/63
正在安裝 : 1:containers-common-0.1.40-7.el7_8.x86_64 47/63
正在安裝 : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch 48/63
正在安裝 : 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 49/63
正在安裝 : 2:docker-client-1.13.1-161.git64e9980.el7_8.x86_64 50/63
正在安裝 : 2:docker-1.13.1-161.git64e9980.el7_8.x86_64 51/63
正在更新 : audit-2.8.5-4.el7.x86_64 52/63
清理 : selinux-policy-targeted-3.13.1-102.el7.noarch 53/63
清理 : selinux-policy-3.13.1-102.el7.noarch 54/63
清理 : policycoreutils-2.5-8.el7.x86_64 55/63
清理 : libsemanage-2.5-4.el7.x86_64 56/63
清理 : libselinux-utils-2.5-6.el7.x86_64 57/63
清理 : audit-2.6.5-3.el7.x86_64 58/63
清理 : libselinux-python-2.5-6.el7.x86_64 59/63
清理 : libselinux-2.5-6.el7.x86_64 60/63
清理 : libsepol-2.5-6.el7.x86_64 61/63
清理 : audit-libs-2.6.5-3.el7.x86_64 62/63
清理 : libxml2-2.9.1-6.el7_2.3.x86_64 63/63
驗證中 : 2:container-selinux-2.119.1-1.c57a6f9.el7.noarch 1/63
驗證中 : libxml2-2.9.1-6.el7.4.x86_64 2/63
驗證中 : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 3/63
驗證中 : 1:atomic-registries-1.22.1-33.gitb507039.el7_8.x86_64 4/63
驗證中 : python-ethtool-0.8-8.el7.x86_64 5/63
驗證中 : fuse-overlayfs-0.7.2-6.el7_8.x86_64 6/63
驗證中 : libselinux-2.5-15.el7.x86_64 7/63
驗證中 : container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch 8/63
驗證中 : python-inotify-0.9.4-4.el7.noarch 9/63
驗證中 : libselinux-python-2.5-15.el7.x86_64 10/63
驗證中 : libxml2-python-2.9.1-6.el7.4.x86_64 11/63
驗證中 : python-setuptools-0.9.8-7.el7.noarch 12/63
驗證中 : python-syspurpose-1.24.26-1.el7.centos.x86_64 13/63
驗證中 : audit-libs-2.8.5-4.el7.x86_64 14/63
驗證中 : checkpolicy-2.5-8.el7.x86_64 15/63
驗證中 : subscription-manager-rhsm-1.24.26-1.el7.centos.x86_64 16/63
驗證中 : python-IPy-0.75-6.el7.noarch 17/63
驗證中 : python-dateutil-1.5-7.el7.noarch 18/63
驗證中 : policycoreutils-2.5-34.el7.x86_64 19/63
驗證中 : selinux-policy-3.13.1-266.el7.noarch 20/63
驗證中 : subscription-manager-1.24.26-1.el7.centos.x86_64 21/63
驗證中 : 2:oci-umount-2.5-3.el7.x86_64 22/63
驗證中 : libseccomp-2.3.1-4.el7.x86_64 23/63
驗證中 : libselinux-utils-2.5-15.el7.x86_64 24/63
驗證中 : policycoreutils-python-2.5-34.el7.x86_64 25/63
驗證中 : python-pytoml-0.1.14-1.git7dea353.el7.noarch 26/63
驗證中 : 2:docker-client-1.13.1-161.git64e9980.el7_8.x86_64 27/63
驗證中 : setools-libs-3.3.8-4.el7.x86_64 28/63
驗證中 : fuse3-libs-3.6.1-4.el7.x86_64 29/63
驗證中 : audit-2.8.5-4.el7.x86_64 30/63
驗證中 : 1:containers-common-0.1.40-7.el7_8.x86_64 31/63
驗證中 : libsemanage-python-2.5-14.el7.x86_64 32/63
驗證中 : 1:oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64 33/63
驗證中 : libsemanage-2.5-14.el7.x86_64 34/63
驗證中 : 1:oci-register-machine-0-6.git2b44233.el7.x86_64 35/63
驗證中 : libsepol-2.5-10.el7.x86_64 36/63
驗證中 : slirp4netns-0.4.3-4.el7_8.x86_64 37/63
驗證中 : python-backports-1.0-8.el7.x86_64 38/63
驗證中 : yajl-2.0.4-4.el7.x86_64 39/63
驗證中 : audit-libs-python-2.8.5-4.el7.x86_64 40/63
驗證中 : python-dmidecode-3.12.2-4.el7.x86_64 41/63
驗證中 : libyaml-0.1.4-11.el7_0.x86_64 42/63
驗證中 : 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 43/63
驗證中 : selinux-policy-targeted-3.13.1-266.el7.noarch 44/63
驗證中 : libnl-1.1.4-3.el7.x86_64 45/63
驗證中 : python-six-1.9.0-2.el7.noarch 46/63
驗證中 : python-ipaddress-1.0.16-2.el7.noarch 47/63
驗證中 : subscription-manager-rhsm-certificates-1.24.26-1.el7.centos.x86_64 48/63
驗證中 : 2:docker-1.13.1-161.git64e9980.el7_8.x86_64 49/63
驗證中 : PyYAML-3.10-11.el7.x86_64 50/63
驗證中 : usermode-1.111-6.el7.x86_64 51/63
驗證中 : libcgroup-0.41-21.el7.x86_64 52/63
驗證中 : policycoreutils-2.5-8.el7.x86_64 53/63
驗證中 : libselinux-2.5-6.el7.x86_64 54/63
驗證中 : libselinux-python-2.5-6.el7.x86_64 55/63
驗證中 : libselinux-utils-2.5-6.el7.x86_64 56/63
驗證中 : libxml2-2.9.1-6.el7_2.3.x86_64 57/63
驗證中 : libsepol-2.5-6.el7.x86_64 58/63
驗證中 : selinux-policy-3.13.1-102.el7.noarch 59/63
驗證中 : audit-2.6.5-3.el7.x86_64 60/63
驗證中 : selinux-policy-targeted-3.13.1-102.el7.noarch 61/63
驗證中 : audit-libs-2.6.5-3.el7.x86_64 62/63
驗證中 : libsemanage-2.5-4.el7.x86_64 63/63
已安裝:
docker.x86_64 2:1.13.1-161.git64e9980.el7_8
作為依賴被安裝:
PyYAML.x86_64 0:3.10-11.el7 atomic-registries.x86_64 1:1.22.1-33.gitb507039.el7_8
audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7
container-selinux.noarch 2:2.119.1-1.c57a6f9.el7 container-storage-setup.noarch 0:0.11.0-2.git5eaf76c.el7
containers-common.x86_64 1:0.1.40-7.el7_8 docker-client.x86_64 2:1.13.1-161.git64e9980.el7_8
docker-common.x86_64 2:1.13.1-161.git64e9980.el7_8 fuse-overlayfs.x86_64 0:0.7.2-6.el7_8
fuse3-libs.x86_64 0:3.6.1-4.el7 libcgroup.x86_64 0:0.41-21.el7
libnl.x86_64 0:1.1.4-3.el7 libseccomp.x86_64 0:2.3.1-4.el7
libsemanage-python.x86_64 0:2.5-14.el7 libxml2-python.x86_64 0:2.9.1-6.el7.4
libyaml.x86_64 0:0.1.4-11.el7_0 oci-register-machine.x86_64 1:0-6.git2b44233.el7
oci-systemd-hook.x86_64 1:0.2.0-1.git05e6923.el7_6 oci-umount.x86_64 2:2.5-3.el7
policycoreutils-python.x86_64 0:2.5-34.el7 python-IPy.noarch 0:0.75-6.el7
python-backports.x86_64 0:1.0-8.el7 python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7
python-dateutil.noarch 0:1.5-7.el7 python-dmidecode.x86_64 0:3.12.2-4.el7
python-ethtool.x86_64 0:0.8-8.el7 python-inotify.noarch 0:0.9.4-4.el7
python-ipaddress.noarch 0:1.0.16-2.el7 python-pytoml.noarch 0:0.1.14-1.git7dea353.el7
python-setuptools.noarch 0:0.9.8-7.el7 python-six.noarch 0:1.9.0-2.el7
python-syspurpose.x86_64 0:1.24.26-1.el7.centos setools-libs.x86_64 0:3.3.8-4.el7
slirp4netns.x86_64 0:0.4.3-4.el7_8 subscription-manager.x86_64 0:1.24.26-1.el7.centos
subscription-manager-rhsm.x86_64 0:1.24.26-1.el7.centos subscription-manager-rhsm-certificates.x86_64 0:1.24.26-1.el7.centos
usermode.x86_64 0:1.111-6.el7 yajl.x86_64 0:2.0.4-4.el7
作為依賴被更新:
audit.x86_64 0:2.8.5-4.el7 audit-libs.x86_64 0:2.8.5-4.el7 libselinux.x86_64 0:2.5-15.el7 libselinux-python.x86_64 0:2.5-15.el7
libselinux-utils.x86_64 0:2.5-15.el7 libsemanage.x86_64 0:2.5-14.el7 libsepol.x86_64 0:2.5-10.el7 libxml2.x86_64 0:2.9.1-6.el7.4
policycoreutils.x86_64 0:2.5-34.el7 selinux-policy.noarch 0:3.13.1-266.el7 selinux-policy-targeted.noarch 0:3.13.1-266.el7
完畢!
[root@minikube ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
[root@minikube ~]# docker info
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root@minikube ~]# vi /etc/docker/
[root@minikube ~]# cd /etc/docker/
[root@minikube docker]# ls
certs.d daemon.json seccomp.json
[root@minikube docker]# vi daemon.json
[root@minikube docker]# yum install -y yum-utils \
> device-mapper-persistent-data \
> lvm2
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.bfsu.edu.cn
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 device-mapper-persistent-data.x86_64.0.0.6.3-1.el7 将被 更新
---> 軟體包 device-mapper-persistent-data.x86_64.0.0.8.5-2.el7 将被 更新
---> 軟體包 lvm2.x86_64.7.2.02.166-1.el7 将被 更新
---> 軟體包 lvm2.x86_64.7.2.02.186-7.el7_8.1 将被 更新
--> 正在處理依賴關系 lvm2-libs = 7:2.02.186-7.el7_8.1,它被軟體包 7:lvm2-2.02.186-7.el7_8.1.x86_64 需要
--> 正在處理依賴關系 libdevmapper.so.1.02(DM_1_02_141)(64bit),它被軟體包 7:lvm2-2.02.186-7.el7_8.1.x86_64 需要
--> 正在處理依賴關系 libdevmapper.so.1.02(DM_1_02_138)(64bit),它被軟體包 7:lvm2-2.02.186-7.el7_8.1.x86_64 需要
---> 軟體包 yum-utils.noarch.0.1.1.31-53.el7 将被 安裝
--> 正在處理依賴關系 python-kitchen,它被軟體包 yum-utils-1.1.31-53.el7.noarch 需要
--> 正在檢查事務
---> 軟體包 device-mapper-libs.x86_64.7.1.02.135-1.el7 将被 更新
--> 正在處理依賴關系 device-mapper-libs = 7:1.02.135-1.el7,它被軟體包 7:device-mapper-1.02.135-1.el7.x86_64 需要
---> 軟體包 device-mapper-libs.x86_64.7.1.02.164-7.el7_8.1 将被 更新
---> 軟體包 lvm2-libs.x86_64.7.2.02.166-1.el7 将被 更新
---> 軟體包 lvm2-libs.x86_64.7.2.02.186-7.el7_8.1 将被 更新
--> 正在處理依賴關系 device-mapper-event = 7:1.02.164-7.el7_8.1,它被軟體包 7:lvm2-libs-2.02.186-7.el7_8.1.x86_64 需要
---> 軟體包 python-kitchen.noarch.0.1.1.1-5.el7 将被 安裝
--> 正在處理依賴關系 python-chardet,它被軟體包 python-kitchen-1.1.1-5.el7.noarch 需要
--> 正在檢查事務
---> 軟體包 device-mapper.x86_64.7.1.02.135-1.el7 将被 更新
---> 軟體包 device-mapper.x86_64.7.1.02.164-7.el7_8.1 将被 更新
---> 軟體包 device-mapper-event.x86_64.7.1.02.135-1.el7 将被 更新
---> 軟體包 device-mapper-event.x86_64.7.1.02.164-7.el7_8.1 将被 更新
--> 正在處理依賴關系 device-mapper-event-libs = 7:1.02.164-7.el7_8.1,它被軟體包 7:device-mapper-event-1.02.164-7.el7_8.1.x86_64 需要
---> 軟體包 python-chardet.noarch.0.2.2.1-3.el7 将被 安裝
--> 正在檢查事務
---> 軟體包 device-mapper-event-libs.x86_64.7.1.02.135-1.el7 将被 更新
---> 軟體包 device-mapper-event-libs.x86_64.7.1.02.164-7.el7_8.1 将被 更新
--> 解決依賴關系完成
依賴關系解決
===========================================================================================================================================================================
Package 架構 版本 源 大小
===========================================================================================================================================================================
正在安裝:
yum-utils noarch 1.1.31-53.el7 base 122 k
正在更新:
device-mapper-persistent-data x86_64 0.8.5-2.el7 base 422 k
lvm2 x86_64 7:2.02.186-7.el7_8.1 updates 1.3 M
為依賴而安裝:
python-chardet noarch 2.2.1-3.el7 base 227 k
python-kitchen noarch 1.1.1-5.el7 base 267 k
為依賴而更新:
device-mapper x86_64 7:1.02.164-7.el7_8.1 updates 295 k
device-mapper-event x86_64 7:1.02.164-7.el7_8.1 updates 191 k
device-mapper-event-libs x86_64 7:1.02.164-7.el7_8.1 updates 190 k
device-mapper-libs x86_64 7:1.02.164-7.el7_8.1 updates 324 k
lvm2-libs x86_64 7:2.02.186-7.el7_8.1 updates 1.1 M
事務概要
===========================================================================================================================================================================
安裝 1 軟體包 (+2 依賴軟體包)
更新 2 軟體包 (+5 依賴軟體包)
總下載下傳量:4.4 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/10): device-mapper-1.02.164-7.el7_8.1.x86_64.rpm | 295 kB 00:00:00
(2/10): device-mapper-event-1.02.164-7.el7_8.1.x86_64.rpm | 191 kB 00:00:00
(3/10): device-mapper-event-libs-1.02.164-7.el7_8.1.x86_64.rpm | 190 kB 00:00:00
(4/10): device-mapper-libs-1.02.164-7.el7_8.1.x86_64.rpm | 324 kB 00:00:00
(5/10): python-chardet-2.2.1-3.el7.noarch.rpm | 227 kB 00:00:00
(6/10): device-mapper-persistent-data-0.8.5-2.el7.x86_64.rpm | 422 kB 00:00:00
(7/10): lvm2-libs-2.02.186-7.el7_8.1.x86_64.rpm | 1.1 MB 00:00:00
(8/10): python-kitchen-1.1.1-5.el7.noarch.rpm | 267 kB 00:00:00
(9/10): yum-utils-1.1.31-53.el7.noarch.rpm | 122 kB 00:00:00
(10/10): lvm2-2.02.186-7.el7_8.1.x86_64.rpm | 1.3 MB 00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
總計 3.5 MB/s | 4.4 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : 7:device-mapper-1.02.164-7.el7_8.1.x86_64 1/17
正在更新 : 7:device-mapper-libs-1.02.164-7.el7_8.1.x86_64 2/17
正在更新 : 7:device-mapper-event-libs-1.02.164-7.el7_8.1.x86_64 3/17
正在更新 : 7:device-mapper-event-1.02.164-7.el7_8.1.x86_64 4/17
正在更新 : 7:lvm2-libs-2.02.186-7.el7_8.1.x86_64 5/17
正在安裝 : python-chardet-2.2.1-3.el7.noarch 6/17
正在安裝 : python-kitchen-1.1.1-5.el7.noarch 7/17
正在更新 : device-mapper-persistent-data-0.8.5-2.el7.x86_64 8/17
正在更新 : 7:lvm2-2.02.186-7.el7_8.1.x86_64 9/17
正在安裝 : yum-utils-1.1.31-53.el7.noarch 10/17
清理 : 7:lvm2-2.02.166-1.el7.x86_64 11/17
清理 : 7:lvm2-libs-2.02.166-1.el7.x86_64 12/17
清理 : 7:device-mapper-event-1.02.135-1.el7.x86_64 13/17
清理 : 7:device-mapper-event-libs-1.02.135-1.el7.x86_64 14/17
清理 : 7:device-mapper-1.02.135-1.el7.x86_64 15/17
清理 : 7:device-mapper-libs-1.02.135-1.el7.x86_64 16/17
清理 : device-mapper-persistent-data-0.6.3-1.el7.x86_64 17/17
驗證中 : 7:device-mapper-event-1.02.164-7.el7_8.1.x86_64 1/17
驗證中 : 7:device-mapper-event-libs-1.02.164-7.el7_8.1.x86_64 2/17
驗證中 : device-mapper-persistent-data-0.8.5-2.el7.x86_64 3/17
驗證中 : python-chardet-2.2.1-3.el7.noarch 4/17
驗證中 : yum-utils-1.1.31-53.el7.noarch 5/17
驗證中 : 7:lvm2-libs-2.02.186-7.el7_8.1.x86_64 6/17
驗證中 : 7:device-mapper-libs-1.02.164-7.el7_8.1.x86_64 7/17
驗證中 : python-kitchen-1.1.1-5.el7.noarch 8/17
驗證中 : 7:device-mapper-1.02.164-7.el7_8.1.x86_64 9/17
驗證中 : 7:lvm2-2.02.186-7.el7_8.1.x86_64 10/17
驗證中 : 7:device-mapper-event-libs-1.02.135-1.el7.x86_64 11/17
驗證中 : 7:device-mapper-1.02.135-1.el7.x86_64 12/17
驗證中 : 7:lvm2-2.02.166-1.el7.x86_64 13/17
驗證中 : device-mapper-persistent-data-0.6.3-1.el7.x86_64 14/17
驗證中 : 7:device-mapper-libs-1.02.135-1.el7.x86_64 15/17
驗證中 : 7:device-mapper-event-1.02.135-1.el7.x86_64 16/17
驗證中 : 7:lvm2-libs-2.02.166-1.el7.x86_64 17/17
已安裝:
yum-utils.noarch 0:1.1.31-53.el7
作為依賴被安裝:
python-chardet.noarch 0:2.2.1-3.el7 python-kitchen.noarch 0:1.1.1-5.el7
更新完畢:
device-mapper-persistent-data.x86_64 0:0.8.5-2.el7 lvm2.x86_64 7:2.02.186-7.el7_8.1
作為依賴被更新:
device-mapper.x86_64 7:1.02.164-7.el7_8.1 device-mapper-event.x86_64 7:1.02.164-7.el7_8.1 device-mapper-event-libs.x86_64 7:1.02.164-7.el7_8.1
device-mapper-libs.x86_64 7:1.02.164-7.el7_8.1 lvm2-libs.x86_64 7:2.02.186-7.el7_8.1
完畢!
[root@minikube docker]# tee /etc/docker/daemon.json <<-'EOF'
> {
> "registry-mirrors": ["https://088aunhx.mirror.aliyuncs.com"]
> }
> EOF
{
"registry-mirrors": ["https://088aunhx.mirror.aliyuncs.com"]
}
[root@minikube docker]# systemctl daemon-reload
[root@minikube docker]# systemctl start docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
[root@minikube docker]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 二 2020-05-12 19:11:12 CST; 10s ago
Docs: http://docs.docker.com
Process: 19362 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 (code=exited, status=1/FAILURE)
Main PID: 19362 (code=exited, status=1/FAILURE)
5月 12 19:11:10 minikube systemd[1]: Starting Docker Application Container Engine...
5月 12 19:11:10 minikube dockerd-current[19362]: time="2020-05-12T19:11:10.993891503+08:00" level=warning msg="could not change group /var/run/docker.sock to...not found"
5月 12 19:11:11 minikube dockerd-current[19362]: time="2020-05-12T19:11:11.001432797+08:00" level=info msg="libcontainerd: new containerd process, pid: 19368"
5月 12 19:11:12 minikube dockerd-current[19362]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot i...led=false)
5月 12 19:11:12 minikube systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
5月 12 19:11:12 minikube systemd[1]: Failed to start Docker Application Container Engine.
5月 12 19:11:12 minikube systemd[1]: Unit docker.service entered failed state.
5月 12 19:11:12 minikube systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@minikube docker]# yum remove docker
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 docker.x86_64.2.1.13.1-161.git64e9980.el7_8 将被 删除
--> 解決依賴關系完成
依賴關系解決
===========================================================================================================================================================================
Package 架構 版本 源 大小
===========================================================================================================================================================================
正在删除:
docker x86_64 2:1.13.1-161.git64e9980.el7_8 @extras 65 M
事務概要
===========================================================================================================================================================================
移除 1 軟體包
安裝大小:65 M
是否繼續?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在删除 : 2:docker-1.13.1-161.git64e9980.el7_8.x86_64 1/1
警告:/etc/sysconfig/docker-storage 已另存為 /etc/sysconfig/docker-storage.rpmsave
警告:/etc/docker/daemon.json 已另存為 /etc/docker/daemon.json.rpmsave
驗證中 : 2:docker-1.13.1-161.git64e9980.el7_8.x86_64 1/1
删除:
docker.x86_64 2:1.13.1-161.git64e9980.el7_8
完畢!
[root@minikube docker]# yum install docker-ce docker-ce-cli containerd.io
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.bfsu.edu.cn
沒有可用軟體包 docker-ce。
沒有可用軟體包 docker-ce-cli。
沒有可用軟體包 containerd.io。
錯誤:無須任何處理
[root@minikube docker]# yum-config-manager \
> --add-repo \
> https://download.docker.com/linux/centos/docker-ce.repo
已加載插件:fastestmirror, product-id, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@minikube docker]# yum install docker-ce docker-ce-cli containerd.io
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
docker-ce-stable | 3.5 kB 00:00:00
(1/2): docker-ce-stable/x86_64/updateinfo | 55 B 00:00:00
(2/2): docker-ce-stable/x86_64/primary_db | 41 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.bfsu.edu.cn
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 containerd.io.x86_64.0.1.2.13-3.1.el7 将被 安裝
---> 軟體包 docker-ce.x86_64.3.19.03.8-3.el7 将被 安裝
---> 軟體包 docker-ce-cli.x86_64.1.19.03.8-3.el7 将被 安裝
--> 解決依賴關系完成
依賴關系解決
===========================================================================================================================================================================
Package 架構 版本 源 大小
===========================================================================================================================================================================
正在安裝:
containerd.io x86_64 1.2.13-3.1.el7 docker-ce-stable 23 M
docker-ce x86_64 3:19.03.8-3.el7 docker-ce-stable 25 M
docker-ce-cli x86_64 1:19.03.8-3.el7 docker-ce-stable 40 M
事務概要
===========================================================================================================================================================================
安裝 3 軟體包
總下載下傳量:87 M
安裝大小:363 M
Is this ok [y/d/N]: y
Downloading packages:
警告:/var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-19.03.8-3.el7.x86_64.rpm: 頭V4 RSA/SHA512 Signature, 密鑰 ID 621e9f35: NOKEY MB/s | 45 MB 00:00:18 ETA
docker-ce-19.03.8-3.el7.x86_64.rpm 的公鑰尚未安裝
(1/3): docker-ce-19.03.8-3.el7.x86_64.rpm | 25 MB 00:00:25
(2/3): containerd.io-1.2.13-3.1.el7.x86_64.rpm | 23 MB 00:00:35
(3/3): docker-ce-cli-19.03.8-3.el7.x86_64.rpm | 40 MB 00:00:37
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
總計 1.4 MB/s | 87 MB 00:01:03
從 https://download.docker.com/linux/centos/gpg 檢索密鑰
導入 GPG key 0x621E9F35:
使用者ID : "Docker Release (CE rpm) <[email protected]>"
指紋 : 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
來自 : https://download.docker.com/linux/centos/gpg
是否繼續?[y/N]:y
Running transaction check
Running transaction test
Transaction check error:
file /usr/bin/docker from install of docker-ce-cli-1:19.03.8-3.el7.x86_64 conflicts with file from package docker-common-2:1.13.1-161.git64e9980.el7_8.x86_64
file /usr/bin/dockerd from install of docker-ce-3:19.03.8-3.el7.x86_64 conflicts with file from package docker-common-2:1.13.1-161.git64e9980.el7_8.x86_64
錯誤概要
-------------
[root@minikube docker]# systemctl start docker
Failed to start docker.service: Unit not found.
[root@minikube docker]# yum remove docker-ce docker-ce-cli containerd.io
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
參數 docker-ce 沒有比對
參數 docker-ce-cli 沒有比對
參數 containerd.io 沒有比對
不删除任何軟體包
[root@minikube docker]# yum remove docker-ce-cli
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
參數 docker-ce-cli 沒有比對
不删除任何軟體包
[root@minikube docker]# yum remove docker-common
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 docker-common.x86_64.2.1.13.1-161.git64e9980.el7_8 将被 删除
--> 正在處理依賴關系 docker-common,它被軟體包 2:docker-client-1.13.1-161.git64e9980.el7_8.x86_64 需要
--> 正在檢查事務
---> 軟體包 docker-client.x86_64.2.1.13.1-161.git64e9980.el7_8 将被 删除
--> 解決依賴關系完成
依賴關系解決
===========================================================================================================================================================================
Package 架構 版本 源 大小
===========================================================================================================================================================================
正在删除:
docker-common x86_64 2:1.13.1-161.git64e9980.el7_8 @extras 4.4 k
為依賴而移除:
docker-client x86_64 2:1.13.1-161.git64e9980.el7_8 @extras 13 M
事務概要
===========================================================================================================================================================================
移除 1 軟體包 (+1 依賴軟體包)
安裝大小:13 M
是否繼續?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在删除 : 2:docker-client-1.13.1-161.git64e9980.el7_8.x86_64 1/2
正在删除 : 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 2/2
驗證中 : 2:docker-client-1.13.1-161.git64e9980.el7_8.x86_64 1/2
驗證中 : 2:docker-common-1.13.1-161.git64e9980.el7_8.x86_64 2/2
删除:
docker-common.x86_64 2:1.13.1-161.git64e9980.el7_8
作為依賴被删除:
docker-client.x86_64 2:1.13.1-161.git64e9980.el7_8
完畢!
[root@minikube docker]# yum install docker-ce docker-ce-cli containerd.io
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.bfsu.edu.cn
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 containerd.io.x86_64.0.1.2.13-3.1.el7 将被 安裝
---> 軟體包 docker-ce.x86_64.3.19.03.8-3.el7 将被 安裝
---> 軟體包 docker-ce-cli.x86_64.1.19.03.8-3.el7 将被 安裝
--> 解決依賴關系完成
依賴關系解決
===========================================================================================================================================================================
Package 架構 版本 源 大小
===========================================================================================================================================================================
正在安裝:
containerd.io x86_64 1.2.13-3.1.el7 docker-ce-stable 23 M
docker-ce x86_64 3:19.03.8-3.el7 docker-ce-stable 25 M
docker-ce-cli x86_64 1:19.03.8-3.el7 docker-ce-stable 40 M
事務概要
===========================================================================================================================================================================
安裝 3 軟體包
總計:87 M
安裝大小:363 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安裝 : 1:docker-ce-cli-19.03.8-3.el7.x86_64 1/3
正在安裝 : containerd.io-1.2.13-3.1.el7.x86_64 2/3
正在安裝 : 3:docker-ce-19.03.8-3.el7.x86_64 3/3
驗證中 : containerd.io-1.2.13-3.1.el7.x86_64 1/3
驗證中 : 1:docker-ce-cli-19.03.8-3.el7.x86_64 2/3
驗證中 : 3:docker-ce-19.03.8-3.el7.x86_64 3/3
已安裝:
containerd.io.x86_64 0:1.2.13-3.1.el7 docker-ce.x86_64 3:19.03.8-3.el7 docker-ce-cli.x86_64 1:19.03.8-3.el7
完畢!
[root@minikube docker]# systemclt start docker
-bash: systemclt: 未找到指令
[root@minikube docker]# systemctl start docker
[root@minikube docker]# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Digest: sha256:8e3114318a995a1ee497790535e7b88365222a21771ae7e53687ad76563e8e76
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
[root@minikube docker]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@minikube docker]# minikube start --driver=none
* Centos 7.3.1611 上的 minikube v1.10.0
* 根據使用者配置使用 none 驅動程式
X Sorry, Kubernetes v1.18.1 requires conntrack to be installed in root's path
[root@minikube docker]# yum install conntrack
已加載插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.bfsu.edu.cn
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 conntrack-tools.x86_64.0.1.4.4-7.el7 将被 安裝
--> 正在處理依賴關系 libnetfilter_conntrack >= 1.0.6,它被軟體包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在處理依賴關系 libnetfilter_cttimeout.so.1(LIBNETFILTER_CTTIMEOUT_1.1)(64bit),它被軟體包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在處理依賴關系 libnetfilter_cttimeout.so.1(LIBNETFILTER_CTTIMEOUT_1.0)(64bit),它被軟體包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在處理依賴關系 libnetfilter_cthelper.so.0(LIBNETFILTER_CTHELPER_1.0)(64bit),它被軟體包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在處理依賴關系 libnetfilter_queue.so.1()(64bit),它被軟體包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在處理依賴關系 libnetfilter_cttimeout.so.1()(64bit),它被軟體包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在處理依賴關系 libnetfilter_cthelper.so.0()(64bit),它被軟體包 conntrack-tools-1.4.4-7.el7.x86_64 需要
--> 正在檢查事務
---> 軟體包 libnetfilter_conntrack.x86_64.0.1.0.4-2.el7 将被 更新
---> 軟體包 libnetfilter_conntrack.x86_64.0.1.0.6-1.el7_3 将被 更新
---> 軟體包 libnetfilter_cthelper.x86_64.0.1.0.0-11.el7 将被 安裝
---> 軟體包 libnetfilter_cttimeout.x86_64.0.1.0.0-7.el7 将被 安裝
---> 軟體包 libnetfilter_queue.x86_64.0.1.0.2-2.el7_2 将被 安裝
--> 解決依賴關系完成
依賴關系解決
===========================================================================================================================================================================
Package 架構 版本 源 大小
===========================================================================================================================================================================
正在安裝:
conntrack-tools x86_64 1.4.4-7.el7 base 187 k
為依賴而安裝:
libnetfilter_cthelper x86_64 1.0.0-11.el7 base 18 k
libnetfilter_cttimeout x86_64 1.0.0-7.el7 base 18 k
libnetfilter_queue x86_64 1.0.2-2.el7_2 base 23 k
為依賴而更新:
libnetfilter_conntrack x86_64 1.0.6-1.el7_3 base 55 k
事務概要
===========================================================================================================================================================================
安裝 1 軟體包 (+3 依賴軟體包)
更新 ( 1 依賴軟體包)
總下載下傳量:301 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/5): conntrack-tools-1.4.4-7.el7.x86_64.rpm | 187 kB 00:00:00
(2/5): libnetfilter_conntrack-1.0.6-1.el7_3.x86_64.rpm | 55 kB 00:00:00
(3/5): libnetfilter_cttimeout-1.0.0-7.el7.x86_64.rpm | 18 kB 00:00:00
(4/5): libnetfilter_cthelper-1.0.0-11.el7.x86_64.rpm | 18 kB 00:00:00
(5/5): libnetfilter_queue-1.0.2-2.el7_2.x86_64.rpm | 23 kB 00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
總計 498 kB/s | 301 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安裝 : libnetfilter_cthelper-1.0.0-11.el7.x86_64 1/6
正在安裝 : libnetfilter_cttimeout-1.0.0-7.el7.x86_64 2/6
正在更新 : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64 3/6
正在安裝 : libnetfilter_queue-1.0.2-2.el7_2.x86_64 4/6
正在安裝 : conntrack-tools-1.4.4-7.el7.x86_64 5/6
清理 : libnetfilter_conntrack-1.0.4-2.el7.x86_64 6/6
驗證中 : conntrack-tools-1.4.4-7.el7.x86_64 1/6
驗證中 : libnetfilter_queue-1.0.2-2.el7_2.x86_64 2/6
驗證中 : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64 3/6
驗證中 : libnetfilter_cttimeout-1.0.0-7.el7.x86_64 4/6
驗證中 : libnetfilter_cthelper-1.0.0-11.el7.x86_64 5/6
驗證中 : libnetfilter_conntrack-1.0.4-2.el7.x86_64 6/6
已安裝:
conntrack-tools.x86_64 0:1.4.4-7.el7
作為依賴被安裝:
libnetfilter_cthelper.x86_64 0:1.0.0-11.el7 libnetfilter_cttimeout.x86_64 0:1.0.0-7.el7 libnetfilter_queue.x86_64 0:1.0.2-2.el7_2
作為依賴被更新:
libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3
完畢!
[root@minikube docker]# minikube start --driver=none
* Centos 7.3.1611 上的 minikube v1.10.0
* 根據使用者配置使用 none 驅動程式
* Starting control plane node minikube in cluster minikube
* Running on localhost (CPUs=1, Memory=976MB, Disk=37861MB) ...
* OS release is CentOS Linux 7 (Core)
* 正在 Docker 19.03.8 中準備 Kubernetes v1.18.1…
! This bare metal machine is having trouble accessing https://k8s.gcr.io
* To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
* minikube 1.10.1 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.10.1
* To disable this notice, run: 'minikube config set WantUpdateNotification false'
> kubectl.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubeadm.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubelet.sha256: 65 B / 65 B [--------------------------] 100.00% ? p/s 0s
> kubectl: 41.99 MiB / 41.99 MiB [-----------] 100.00% 548.63 KiB p/s 1m19s^A
> kubeadm: 37.97 MiB / 37.97 MiB [-----------] 100.00% 456.11 KiB p/s 1m25s
> kubelet: 108.02 MiB / 108.02 MiB [---------] 100.00% 729.06 KiB p/s 2m31s
! initialization failed, will try again: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.1:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap": exit status 1
stdout:
[init] Using Kubernetes version: v1.18.1
[preflight] Running pre-flight checks
stderr:
W0512 23:10:14.417472 20174 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Swap]: running with swap on is not supported. Please disable swap
[WARNING FileExisting-socat]: socat not found in system path
[WARNING Hostname]: hostname "minikube" could not be reached
[WARNING Hostname]: hostname "minikube": lookup minikube on 114.114.114.114:53: no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
*
X 開啟 cluster 時出錯: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.1:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap": exit status 1
stdout:
[init] Using Kubernetes version: v1.18.1
[preflight] Running pre-flight checks
stderr:
W0512 23:10:20.029699 20315 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Swap]: running with swap on is not supported. Please disable swap
[WARNING FileExisting-socat]: socat not found in system path
[WARNING Hostname]: hostname "minikube" could not be reached
[WARNING Hostname]: hostname "minikube": lookup minikube on 114.114.114.114:53: no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
*
* 由于出錯 minikube 正在退出。如果以上資訊沒有幫助,請送出問題回報:
- https://github.com/kubernetes/minikube/issues/new/choose
*
X failed to start node: startup failed: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.1:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap": exit status 1
stdout:
[init] Using Kubernetes version: v1.18.1
[preflight] Running pre-flight checks
stderr:
W0512 23:10:20.029699 20315 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Swap]: running with swap on is not supported. Please disable swap
[WARNING FileExisting-socat]: socat not found in system path
[WARNING Hostname]: hostname "minikube" could not be reached
[WARNING Hostname]: hostname "minikube": lookup minikube on 114.114.114.114:53: no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
*
* 由于出錯 minikube 正在退出。如果以上資訊沒有幫助,請送出問題回報:
- https://github.com/kubernetes/minikube/issues/new/choose
[root@minikube ~]# minikube start --driver=none
* Centos 7.3.1611 上的 minikube v1.10.0
* 根據現有的配置檔案使用 none 驅動程式
* Starting control plane node minikube in cluster minikube
* Restarting existing none bare metal machine for "minikube" ...
* OS release is CentOS Linux 7 (Core)
* 正在 Docker 19.03.8 中準備 Kubernetes v1.18.1…
! initialization failed, will try again: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.1:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap": exit status 1
stdout:
[init] Using Kubernetes version: v1.18.1
[preflight] Running pre-flight checks
stderr:
W0513 12:07:43.705442 2543 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Swap]: running with swap on is not supported. Please disable swap
[WARNING FileExisting-socat]: socat not found in system path
[WARNING Hostname]: hostname "minikube" could not be reached
[WARNING Hostname]: hostname "minikube": lookup minikube on 114.114.114.114:53: no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
*
X 開啟 cluster 時出錯: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.1:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap": exit status 1
stdout:
[init] Using Kubernetes version: v1.18.1
[preflight] Running pre-flight checks
stderr:
W0513 12:07:44.645293 2727 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Swap]: running with swap on is not supported. Please disable swap
[WARNING FileExisting-socat]: socat not found in system path
[WARNING Hostname]: hostname "minikube" could not be reached
[WARNING Hostname]: hostname "minikube": lookup minikube on 114.114.114.114:53: no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
*
* 由于出錯 minikube 正在退出。如果以上資訊沒有幫助,請送出問題回報:
- https://github.com/kubernetes/minikube/issues/new/choose
*
X failed to start node: startup failed: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.1:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap": exit status 1
stdout:
[init] Using Kubernetes version: v1.18.1
[preflight] Running pre-flight checks
stderr:
W0513 12:07:44.645293 2727 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Swap]: running with swap on is not supported. Please disable swap
[WARNING FileExisting-socat]: socat not found in system path
[WARNING Hostname]: hostname "minikube" could not be reached
[WARNING Hostname]: hostname "minikube": lookup minikube on 114.114.114.114:53: no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
*
* 由于出錯 minikube 正在退出。如果以上資訊沒有幫助,請送出問題回報:
- https://github.com/kubernetes/minikube/issues/new/choose
[root@minikube ~]# sysctl -w net.bridge.bridge-nf-call-iptables=1
net.bridge.bridge-nf-call-iptables = 1
[root@minikube ~]# echo "net.bridge.bridge-f-call-iptables=1" > /etc/sysctl.d/k8s.conf
[root@minikube ~]# swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab
[root@minikube ~]# minikube start --driver=none
* Centos 7.3.1611 上的 minikube v1.10.0
* 根據現有的配置檔案使用 none 驅動程式
* Starting control plane node minikube in cluster minikube
* Restarting existing none bare metal machine for "minikube" ...
* OS release is CentOS Linux 7 (Core)
* 正在 Docker 19.03.8 中準備 Kubernetes v1.18.1…
* 開始配置本地主機環境...
*
! The 'none' driver is designed for experts who need to integrate with an existing VM
* Most users should use the newer 'docker' driver instead, which does not require root!
* For more information, see: https://minikube.sigs.k8s.io/docs/reference/drivers/none/
*
! kubectl 和 minikube 配置将存儲在 /root 中
! 如需以您自己的使用者身份使用 kubectl 或 minikube 指令,您可能需要重新定位該指令。例如,如需覆寫您的自定義設定,請運作:
*
- sudo mv /root/.kube /root/.minikube $HOME
- sudo chown -R $USER $HOME/.kube $HOME/.minikube
*
* 此操作還可通過設定環境變量 CHANGE_MINIKUBE_NONE_USER=true 自動完成
* Enabled addons: default-storageclass, storage-provisioner
* 完成!kubectl 已經配置至 "minikube"
[root@minikube ~]# kubectl get pod --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-546565776c-gb9xj 1/1 Running 0 8m27s
kube-system coredns-546565776c-lpplg 1/1 Running 0 8m27s
kube-system etcd-control-plane.minikube.internal 1/1 Running 0 8m34s
kube-system kube-apiserver-control-plane.minikube.internal 1/1 Running 0 8m34s
kube-system kube-controller-manager-control-plane.minikube.internal 1/1 Running 0 8m34s
kube-system kube-proxy-bc696 1/1 Running 0 8m27s
kube-system kube-scheduler-control-plane.minikube.internal 1/1 Running 0 8m34s
kube-system storage-provisioner 1/1 Running 0 8m33s
[root@minikube ~]#