安装
docker区别
docker.io老版本docker-ce社区版docker-ee企业版
ubuntu 安装 docker
- 安装 ``` sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
sudo apt-get update
sudo apt-get install docker-ce
<a name="d066a2dd"></a>### centos 安装 docker- 官网- [https://docs.docker.com/engine/install/centos/](https://docs.docker.com/engine/install/centos/#uninstall-old-versions)- 在线安装```javasudo yum install yum-utils device-mapper-persistent-data lvm2sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.reposudo yum install docker-ce docker-ce-cli containerd.io
- 离线安装
- https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
- 下载最新的 docker-ce 、 docker-ce-cli、 containerd.io
设置镜像加速器
dockerCloud,提高镜像下载速度查看地址,下拉可查看最新地址daoclod编辑(目前已修正)/etc/docker/daemon.json去除结尾的逗号
使用国内的镜像编辑/etc/docker/daemon.json, 如果不存在,则新建# {# "registry-mirrors": ["https://registry.docker-cn.com"]# }
使用163的加速器
- 编辑
/etc/docker/daemon.json, 如果不存在,则新建{"registry-mirrors": ["http://hub-mirror.c.163.com"]}
- 编辑
重启下
docker info可以看下 register-mode 字段是否配置成功
