标签:docker
参考:
https://docs.docker.com/engine/installation/linux/
1、设置yum源
# tee /etc/yum.repos.d/docker.repo <<-‘EOF‘
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/6/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
# cat /etc/yum.repos.d/docker.repo
2、yum 安装
# yum install docker-engine
# /etc/init.d/docker status
# /etc/init.d/docker start
3、查看 安装路径
# find / -name docker
# docker run hello-world
更新 yum 包
# yum update
执行Docker 安装脚本
# curl -fsSL https://get.docker.com/ | sh
# service docker start
# service docker restart
4、验证测试 Docker 是否安装成功并在容器中执行一个测试镜像;
# docker run hello-world
# df -h
# groupadd docker
# usermod -aG docker your_username
# docker run hello-world
# chkconfig docker on
本文出自 “logs” 博客,请务必保留此出处http://51log.blog.51cto.com/6076767/1839684
标签:docker
原文地址:http://51log.blog.51cto.com/6076767/1839684