42 lines
882 B
Markdown
42 lines
882 B
Markdown
## docker
|
|
docker安装包
|
|
http://mirrors.aliyun.com/docker-ce/linux/static/stable/x86_64/
|
|
|
|
tar -xzf /home/docker-20.10.19.tgz
|
|
sudo mv docker/* /usr/bin/
|
|
|
|
|
|
/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
|
|
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
|
|
|
|
chmod +x /usr/lib/systemd/system/docker.service
|
|
systemctl daemon-reload
|
|
|
|
systemctl enable docker
|
|
systemctl restart docker
|
|
|
|
## docker-compose
|
|
https://github.com/docker/compose/releases
|
|
|
|
chmod +x docker-compose
|
|
mv docker-compose /usr/local/bin/ |