0
点赞
收藏
分享

微信扫一扫

LInux下二进制安装docker

Raow1 2022-03-12 阅读 76


1.下载、解压、复制

wget https://download.docker.com/linux/static/stable/x86_64/docker-19.03.3.tgz
cp docker/* /usr/bin/

2.配置docker.service文件

cat > /usr/lib/systemd/system/docker.service <<EOF
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target

[Service]
Type=notify
ExecStart=/usr/bin/dockerd
ExecReload=/bin/kill -s HUP
LimitNOFILE=infinity
LimitNPROC=infinity
TimeoutStartSec=0
Delegate=yes
KillMode=process
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl restart docker

3.配置镜像加速



举报

相关推荐

0 条评论