docker在windows,centos中的安装

centos安装方式,采用阿里云的镜像和安装脚本

或者到https://store.docker.com/search?type=edition&offering=community下载相应系统的安装包安装

#安装docker客户端 
curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
#配置加速镜像
sudo mkdir -p /etc/docker
 sudo tee /etc/docker/daemon.json <<-'EOF'
 {
   "registry-mirrors": ["<https://我的阿里云专业加速地址.mirror.aliyuncs.com>"]
 }
 EOF
 sudo systemctl daemon-reload
 sudo systemctl restart docker

windows安装

https://store.docker.com/editions/community/docker-ce-desktop-windows
安装包下载,双击安装就完事了。
windows设置镜像地址

posted @ 2017-06-21 16:08  czd890  阅读(602)  评论(0编辑  收藏  举报