docker虚拟化平台构建
从1.13版本以后的docker软件分为连个版本:企业版、社区版,在企业中推荐社区版本。
构建docker平台环境,系统选择centos7.x,推荐linux内核3.10
docker平台安装方法如下:
安装第三方epel-relase扩展源
[root@localhost ~]# yum install epel-release -y
安装docker软件包
[root@localhost ~]# yum install docker -y
查看docker软件包是否部署
[root@localhost ~]# yum list docker 已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com 已安装的软件包 docker.x86_64 2:1.13.1-103.git7f2769b.el7.centos [root@localhost ~]# rpm -qa |grep docker docker-client-1.13.1-103.git7f2769b.el7.centos.x86_64 docker-1.13.1-103.git7f2769b.el7.centos.x86_64 docker-common-1.13.1-103.git7f2769b.el7.centos.x86_64
启动docker服务
systemctl start docker.service
查看docker版本信息,只要看到client和server信息,就说明docker启动正常。
[root@localhost ~]# docker version Client: Version: 1.13.1 API version: 1.26 Package version: docker-1.13.1-103.git7f2769b.el7.centos.x86_64 Go version: go1.10.3 Git commit: 7f2769b/1.13.1 Built: Sun Sep 15 14:06:47 2019 OS/Arch: linux/amd64 Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: docker-1.13.1-103.git7f2769b.el7.centos.x86_64 Go version: go1.10.3 Git commit: 7f2769b/1.13.1 Built: Sun Sep 15 14:06:47 2019 OS/Arch: linux/amd64 Experimental: false