docker部署安装

    docker采用Linux内核技术,所以只能运行在Linux上,所谓的windows平台是使用boot2Docker工具,boot2Docker是在VisualBox构建一个linux精简化环境。

Boot2Docker官方下载地址:https://github.com/boot2docker/windows-installer/releases
Boot2Docker官方安装手册:http://docs.docker.com/installation/windows/

系统环境centos7.3

    使用默认yum源或阿里等yum源默认安装的版本太久,这里使用docker官方yum源进行安装

http://yum.dockerproject.org/

cat >/etc/yum.repos.d/docker.repo <<-EOF
[docker]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
yum makecache
yum install docker-engine

猜你喜欢

转载自www.cnblogs.com/LC161616/p/8997513.html
今日推荐