容器技术
文章平均质量分 70
Docker k8s等容器技术
等待_迷失的Linux
Linux c、c++
展开
-
Transaction check error: file /usr/bin/kubectl from install of kubectl-1.23.4-0.x86_64 conflicts
安装k8s时遇到的问题:# yum -y install kubectl提示如下:已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.Loading mirr原创 2022-03-17 16:48:58 · 2331 阅读 · 0 评论 -
Docker学习(三)- Dockerfile(centos7下构建nginx容器)
构建镜像的方式1.1 使用docker commit创建镜像使用docker commit创建镜像的过程是这样的,首先下载一个干净的系统基础镜像,在其运行出的容器里面安装你想要的安装的软件,在安装完设置完成之后,使用docker commit来完成创建。1.2 使用Dockerfile创建镜像dockerfile 就是一个docker官方定义的一个小的用于构建镜像的脚本语言。举例测试(使用Dockerfile构建mysql镜像)1、创建Dockerfile并写入以下内容root原创 2022-03-17 12:56:43 · 4293 阅读 · 0 评论 -
Docker学习(二)- 测试(centos7下)
1、装一个centeros7虚拟机,我的版本如下(如何装虚拟机自行百度)#uname -a#Linux 33_du 3.10.0-rt56 #1 SMP PREEMPT RT Tue Jan 8 17:02:27 CST 2019 x86_64 x86_64 x86_64 GNU/Linux2、原创 2022-03-14 19:14:11 · 970 阅读 · 0 评论 -
[kubelet-check] The HTTP call equal to ‘curl -sSL http://localhost:10248/healthz‘ failed with error
搭建k8s集群发现这个问题。原因:Docker是用yum安装的,docker的cgroup驱动程序默认设置为systemd。默认情况下Kubernetes cgroup为system,需要更改Docker cgroup驱动,解决:1、# 添加以下内容vim /etc/docker/daemon.json{ "exec-opts": ["native.cgroupdriver=systemd"]}2、# 重启dockersystemctl restart docker...原创 2022-03-14 16:33:46 · 1601 阅读 · 0 评论 -
Docker学习(一)- 环境搭建(centos7下搭建)
1、装一个centeros7虚拟机,我的版本如下(如何装虚拟机自行百度)#uname -a#Linux 33_du 3.10.0-rt56 #1 SMP PREEMPT RT Tue Jan 8 17:02:27 CST 2019 x86_64 x86_64 x86_64 GNU/Linux2、原创 2022-03-14 17:44:24 · 1203 阅读 · 0 评论