当前位置:   article > 正文

二进制安装docker-18.06.3-ce

下载docker18.06.03版本安装包

二进制安装docker

1,下载 https://download.docker.com/linux/static/stable/x86_64/docker-18.06.3-ce.tgz

2,解压,

tar xzvf docker-18.06.3-ce.tgz

3,复制二进制文件到/usr/bin目录下

  1. cp -ar docker/* /usr/bin/

4,检查是否安装

docker version

5,配置 docker.service文件

  1. cat >>/usr/lib/systemd/system/docker.service <<EOF
  2. [Unit]
  3. Description=Docker Application Container Engine
  4. Documentation=https://docs.docker.com
  5. After=network-online.target firewalld.service
  6. Wants=network-online.target
  7. [Service]
  8. Type=notify
  9. ExecStart=/usr/bin/dockerd
  10. ExecReload=/bin/kill -s HUP $MAINPID
  11. LimitNOFILE=infinity
  12. LimitNPROC=infinity
  13. TimeoutStartSec=0
  14. Delegate=yes
  15. KillMode=process
  16. Restart=on-failure
  17. StartLimitBurst=3
  18. StartLimitInterval=60s
  19. [Install]
  20. WantedBy=multi-user.target
  21. EOF

6,启动dockerd服务进程

  1. systemctl daemon-reload
  2. systemctl start docker.service

 

转载于:https://www.cnblogs.com/Dev0ps/p/10993921.html

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号