且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

docker在windows,centos中的安装

更新时间:2022-03-12 18:46:36

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设置镜像地址
docker在windows,centos中的安装