统信服务器操作系统V20 1070A 安装docker新版本26.1.4

应用场景:

硬件/整机信息:x86平台、深信服超融合平台

OS版本信息:统信V20 1070a

1.获取 docker 二进制包

链接: https://pan.baidu.com/s/1SukBlra0mQxvslTfFakzGw?pwd=5s5y 提取码: 5s5y

tar xvf docker-26.1.4.tgz

groupadd docker

chown .docker docker/*

cp -a docker/* /usr/bin/

2. 创建 / usr /lib/systemd/system/docker.service文件

复制代码
[Unit]

Description=Docker Application Container Engine

Documentation=https://docs.docker.com

After=network-online.target firewalld.service

Wants=network-online.target

[Service]

Type=notify

# the default is not to use systemd for cgroups because the delegate issues still

# exists and systemd currently does not support the cgroup feature set required

# for containers run by docker

ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock

ExecReload=/bin/kill -s HUP $MAINPID

# Having non-zero Limit*s causes performance problems due to accounting overhead

# in the kernel. We recommend using cgroups to do container-local accounting.

LimitNOFILE=infinity

LimitNPROC=infinity

LimitCORE=infinity

# Uncomment TasksMax if your systemd version supports it.

# Only systemd 226 and above support this version.

#TasksMax=infinity

TimeoutStartSec=0

# set delegate yes so that systemd does not reset the cgroups of docker containers

Delegate=yes

# kill only the docker process, not all processes in the cgroup

KillMode=process

# restart the docker process if it exits prematurely

Restart=always

StartLimitBurst=3

StartLimitInterval=60s

[Install]

WantedBy=multi-user.target

3. 启动docker

systemctl daemon-reload

systemctl enable docker

systemctl start docker

chown .docker /var/run/docker.sock

docker -v

相关推荐
IT成长日记5 小时前
【Nginx开荒攻略】Nginx虚拟主机配置:从域名、端口到IP的完整指南
linux·运维·服务器·nginx·虚拟主机
taxunjishu5 小时前
DeviceNet 转 Modbus TCP 协议转换在 S7-1200 PLC化工反应釜中的应用
运维·人工智能·物联网·自动化·区块链
迎風吹頭髮6 小时前
Linux内核架构浅谈8-Linux内核与UNIX的传承:设计思想与特性差异
linux·运维·架构
黑马金牌编程7 小时前
Linux 服务器常见的性能调优
linux·运维·服务器·性能优化
tianyuanwo7 小时前
Linux进程管理中的T状态问题分析与解决体系
linux·运维·进程管理·t状态
liuyao_xianhui8 小时前
Linux_基本指令1
linux·运维·服务器
hello_25010 小时前
动手模拟docker网络-bridge模式
网络·docker·桥接模式
爱吃喵的鲤鱼10 小时前
仿mudou——Connection模块(连接管理)
linux·运维·服务器·开发语言·网络·c++
让子弹飞0210 小时前
永久解决ubuntu网络连接问题
linux·运维·ubuntu
-L710 小时前
【Kubernetes】常见面试题汇总(十九)
云原生·容器·kubernetes