一键安装脚本!Linux系统都支持!
1curl -sSL https://get.docker.com/ | sh
国内阿里云镜像
1curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
Azure源(中国区azure)
1curl -fsSL https://get.docker.com | bash -s docker --mirror AzureChinaCloud
启动Docker
1systemctl start docker
开机启动
1systemctl enable docker
为了加速下载镜像文件,国内服务器可以指定国内的镜像!
阿里云:https://registry.cn-hangzhou.aliyuncs.com/
华为云:https://05f073ad3c0010ea0f4bc00b7105ec20.mirror.swr.myhuaweicloud.com/
Docker中国:https://registry.docker-cn.com