二进制安装docker

1.下载安装

bash 复制代码
[root@openEuler-node1 ~]# wget -c https://download.docker.com/linux/static/stable/x86_64/docker-25.0.3.tgz
[root@openEuler-node1 ~]# wget -c https://download.docker.com/linux/static/stable/x86_64/docker-rootless-extras-25.0.3.tgz

2.解压到指定目录

bash 复制代码
[root@openEuler-node1 ~]# tar xf docker-25.0.3.tgz -C /usr/local/

3.写配置文件

bash 复制代码
[root@openEuler-node1 docker]# vi /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
EnvironmentFile=-/etc/sysconfig/docker
EnvironmentFile=-/etc/sysconfig/docker-storage
EnvironmentFile=-/etc/sysconfig/docker-network
Environment=GOTRACEBACK=crash

ExecStart=/usr/bin/dockerd $OPTIONS \
                           $DOCKER_STORAGE_OPTIONS \
                           $DOCKER_NETWORK_OPTIONS \
                           $INSECURE_REGISTRY
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
# 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

[Install]
WantedBy=multi-user.target

4.启动

bash 复制代码
[root@openEuler-node1 docker]# cp /usr/local/docker/* /usr/bin/
[root@openEuler-node1 docker]# systemctl daemon-reload 
[root@openEuler-node1 docker]# systemctl start docker.service 
相关推荐
爱吃生蚝的于勒3 分钟前
【Linux】重中之重!TCP协议
linux·运维·服务器·网络·学习·tcp/ip
楼田莉子5 分钟前
Linux网络:TCP协议
linux·运维·服务器·网络·tcp/ip
IMPYLH11 分钟前
Linux 的 logname 命令
linux·运维·服务器·bash
杨云龙UP12 分钟前
Oracle 19c:RMAN Duplicate异机复制数据库实操_20260402
linux·运维·服务器·数据库·网络协议·tcp/ip·oracle
zfoo-framework25 分钟前
[推荐]ansible在主控机执行实现多个worker机器免密登录
linux·运维·ansible
i建模27 分钟前
华为MateBook X Pro 2020款在Ubuntu系统中直接使用原生的杜比全景声效果
linux·ubuntu·华为
IMPYLH29 分钟前
Linux 的 ln 命令
linux·运维·服务器·bash
.小小陈.35 分钟前
深度拆解 Linux 程序编译与链接:从静态库到 ELF 运行时全流程
linux·运维·服务器
HealthScience43 分钟前
Autoruns自启动/进程控制软件怎么使用?
linux·运维·服务器
Arvin_Rong44 分钟前
Linux 服务器 /tmp 目录:使用机制与安全加固
linux·服务器·安全