当前位置: 首页 > news >正文

为适配kubelet:v0.4 安装指定版本的docker

系统版本信息

cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 

iso 文件下载地址

https://vault.centos.org/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso

0.4 版本的kubelet 报错信息记录

E0603 19:00:38.273720 44142 kubelet.go:734] 
Error syncing pod: API error (400):
{"message":
"starting container with non-empty request body was deprecated since API v1.22 and removed in v1.24"}skipping.

配置阿里系统源

cat  >   /etc/yum.repos.d/CentOS-Base.repo  <<  EOF 
[base]
name=CentOS-7.6.1810 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/7.6.1810/os/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-7#released updates 
[updates]
name=CentOS-7.6.1810 - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/7.6.1810/updates/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-7#additional packages that may be useful
[extras]
name=CentOS-7.6.1810 - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/7.6.1810/extras/x86_64/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-7.6.1810 - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/7.6.1810/centosplus/x86_64/
gpgcheck=1
enabled=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-7
EOF

配置阿里docker 源

cat > /etc/yum.repos.d/docker.repo  << EOF
[docker]
name=docker
baseurl=https://mirrors.aliyun.com/docker-engine/yum/repo/main/centos/7
gpgcheck=0
EOF

移除已有docker

yum remove docker*

安装支持API v1.23 的docker

yum -y install docker-engine-selinux-1.11.0-1.el7.centos docker-engine-1.11.0-1.el7.centos

在这里插入图片描述

systemctl  enable --now docker

确认api 版本

docker version --format '{{.Server.APIVersion}}'
1.23
http://www.lryc.cn/news/393406.html

相关文章:

  • vivado CLOCK_REGION、CLOCK_ROOT
  • alphazero学习
  • 剖析DeFi交易产品之UniswapV3:交易路由合约
  • Agent下载安装步骤
  • 2024年AI技术深入研究
  • Apache Seata分布式事务启用Nacos做配置中心
  • Emacs之解决:java-mode占用C-c C-c问题(一百四十六)
  • go语言day10 接口interface 类型断言 type关键字
  • Java实现登录验证 -- JWT令牌实现
  • liunx文件系统,日志分析
  • Apipost接口测试工具的原理及应用详解(二)
  • 「AIGC」大数据开发语言Scala入门
  • 2.1 tmux和vim
  • 运行vue : 无法加载文件 C:\Program Files\nodejs\node_global\vue.ps1,因为在此系统上禁止运行脚本。
  • Lambda架构
  • 数据库作业day3
  • 计算机网络——数据链路层(以太网扩展、虚拟局域网、高速以太网)
  • Nuxt 项目集成第三方UI组件库(九)
  • vulnhub靶场之Jarbas
  • 解决onlyoffice警告的一些思路
  • 快速上手指南:使用 Minikube 在本地运行 Kubernetes 集群
  • 【C语言】指针(1):入门理解篇
  • 经典双运算放大器LM358
  • adb不插usb线通过wifi调试
  • vulnhub--IMF
  • ePTFE膜(膨体聚四氟乙烯膜)应用前景广阔 本土企业技术水平不断提升
  • C++与C#创建位图,是否需要区分RGB和BGR模式
  • web学习笔记(八十)
  • 深度解析 Raft 分布式一致性协议
  • Android10以上实现获取设备序列号功能