今天开始了解Docker,CentOS7,yum方式安装Docker
docker$ sudo yum update
添加源
$ cat >/etc/yum.repos.d/docker.repo <<-EOF
[docker_repo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF
sudo yum install docker-engine
sudo service docker start
docker pull learn/tutorial
docker run learn/tutorial echo " hello world! "
docker version