docker很火,基於容器化技術,實現一次編譯到運行。實現運行環境+服務的一鍵式打包!linux
centos7.5(基於vmware搭建的測試環境,能夠跟互聯網交互,橋接方式聯網)docker
docker-ce 18.xcentos
[root@mvp-dd ~]# uname -a
Linux mvp-dd 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux緩存
[root@mvp-dd ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)app
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo //docker-ce源測試
yum-config-manager --add-repo http://mirrors.aliyun.com/repo/Centos-7.repo //centos7源阿里雲
yum makecache fast //生成緩存centos7
yum install -y yum-utils device-mapper-persistent-data lvm2spa
yum -y install docker-ce部署
注意:yum list docker-ce.x86_64 --showduplicates | sort -r //查看docker版本列表
systemctl start docker //啓動docker
systemctl enable docker
https://dev.aliyun.com //註冊阿里雲帳戶
鏡像加速器 //根據相應系統,添加配置便可!