00-Docker基础环境搭建-CentOS7.3
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了00-Docker基础环境搭建-CentOS7.3相关的知识,希望对你有一定的参考价值。
1. 基础环境信息:
虚拟机1台,CentOS 7.3,最小化模式安装;
系统设置:Disabled SeLinux,systemctl Stop/disable firewalld,Static IP;
2. Docker安装过程:
首先删除非官方的Docker包:
[[email protected] ~]# yum -y remove docker docker-common container-selinux
安装yum-utils工具包:
[[email protected] ~]# yum install -y yum-utils

配置阿里安装源(Docker官网安装源下载速度实在蛋疼)
[[email protected] ~]# yum-config-manager \\
> --add-repo \\
> https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

更新安装源:
[[email protected] ~]# yum makecache fast
安装Docker-ce:
[[email protected] ~]# yum -y install docker-ce
[[email protected]de51 ~]# yum -y install docker-ce

启动Docker服务及设置开机自启动
验证Docker版本:
[[email protected] ~]# docker version

至此,docker-ce Version:17.06安装完成。
以上是关于00-Docker基础环境搭建-CentOS7.3的主要内容,如果未能解决你的问题,请参考以下文章
docker中基于centos7.3搭建tesseract5环境以及制作镜像
centos7.3编译安装LAMP环境并搭建WordPress博客
docker学习2-快速搭建centos7-python3.6环境