Windows10家庭版没法安装Docker,能够升级到Windows专业版再安装 或者 使用虚拟机的CentOS系统安装。本文以CentOS 7.6虚机 + Docker 18.06(为了运行Rancher)为例,介绍具体的安装步骤。
以CentOS 7.6为例,标准版下载路径以下:
http://mirrors.aliyun.com/cen...linux
安装过程当中须要设置root密码及新建用户帐号git
若是yum update命令报以下错误信息:github
can not find a valid baseurl for repo: base/7/x86_64
则修改以下配置后重启系统:web
vi /etc/sysconfig/network-scripts/ifcfg-ens33 将最后一行的 ONBOOT=no 改为 ONBOOT=yes wq退出
执行yum update更新系统:docker
yum update
yum install net-tools
yum install yum-utils
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
安装最新版本shell
yum install docker-ce
或安装指定版本,如:centos
yum install docker-ce-18.06.3.ce
安装完成后能够经过 docker version检查:框架
启动docker阿里云
service docker start
若是须要能够设置开机自启动:url
systemctl start docker systemctl enable docker