Files
Kubernetes/Docker/Docs/安装文档/通过脚本安装Docker.md
offends 8a87b699ba
All checks were successful
continuous-integration/drone Build is passing
first commit
2025-12-13 18:06:23 +08:00

705 B

本文作者:丁辉

通过脚本安装Docker

官方脚本

  • 官方源

    curl -fsSL https://get.docker.com | bash
    
  • 阿里源

    curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
    

脚本下载:

curl -fsSL https://get.docker.com -o get-docker.sh

第三方脚本(Rancher)

  • 官方源

    curl https://releases.rancher.com/install-docker/20.10.sh | sh
    
  • 阿里源

    curl -fsSL https://releases.rancher.com/install-docker/20.10.sh | sh -s -- --mirror Aliyun
    

脚本下载:

curl -fsSL https://releases.rancher.com/install-docker/20.10.sh -o rancher-20.10.sh.sh