CentOS 7.2 安装 Docker 1.13.1 版
1、强大的官方文档1 https://docs.docker.com/engine/installation/linux/centos/2、按步骤来,先更新yum源,这里用163的源1 yum install -y wget2 cd /etc/yum.repos.d3 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo4 /u...
1、强大的官方文档
1 https://docs.docker.com/engine/installation/linux/centos/
2、按步骤来,先更新yum源,这里用163的源
1 yum install -y wget
2 cd /etc/yum.repos.d
3 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
4 /usr/bin/yum clean all
5 /usr/bin/yum makecache
6 其他系统自带的源可以保留,也可以全部干掉
3、更新系统
1 yum update
4、如果遇到问题:Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
1 yum install -y deltarpm
5、编辑生成docker的yum源文件
1 tee /etc/yum.repos.d/docker.repo <<-‘EOF’
2 [dockerrepo]
3 name=Docker Repository
4 baseurl=https://yum.dockerproject.org/repo/main/centos/7/
5 enabled=1
6 gpgcheck=1
7 gpgkey=https://yum.dockerproject.org/gpg
8 EOF
6、安装Docker
1 yum install docker-engine
7、如果遇到问题:Public key for docker-engine-selinux-1.10.1-1.el7.centos.noarch.rpm is not installed,执行下面的命令
1 rpm --import https://yum.dockerproject.org/gpg
8、Docker下载速度很慢,请耐心等待
9、安装完成后设置开机自启
1 systemctl enable docker.service
10、启动docker守护进程
1 systemctl start docker
11、查看docker版本
[root@localhost ~]# docker version
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
12、 Done,enjoy it!
本文出自http://www.cnblogs.com/scoter2008
- ------------------------2019-04-10---------------------------
- ----------------------良心经验,个人测试可行-----------
- ----------------------博主:fager----------------------------
更多推荐
所有评论(0)