腾讯os安装指定版本的docker-19.03.11

1操作过程

wget https://download.docker.com/linux/static/stable/x86_64/docker-19.03.11.tgz
tar xf docker-19.03.11.tgz
mv docker /application/
cd /application/
cp docker/* /usr/bin/
vim /etc/systemd/system/docker.service
chmod +x /etc/systemd/system/docker.service
systemctl daemon-reload
systemctl enable docker.service
systemctl start docker
systemctl status docker

1配置systemctl工具代码如下:

[root@56laiyue /application]#cat /etc/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
 
ExecStart=/usr/bin/dockerd
 
ExecReload=/bin/kill -s HUP $MAINPID
 
LimitNOFILE=infinity
 
LimitNPROC=infinity
 
TimeoutStartSec=0
 
Delegate=yes
 
KillMode=process
 
Restart=on-failure
 
StartLimitBurst=3
 
StartLimitInterval=60s
 
 
 
[Install]
 
WantedBy=multi-user.target

 

posted @ 2022-04-23 11:34  linuxTang  阅读(117)  评论(0编辑  收藏  举报