CentOS release 6.9 安装docker

CentOS release 6.9 安装docker

1 安装 # lsb yum install lsb -y

2 查看版本 #lsb_release -a
在这里插入图片描述
3 安装yum源
yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

4 安装 docker yum install docker-io

如果报错(下图错误) No package docker-io available. 可直接用下载源安装,执行命令:yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm
CentOS release 6.9 安装docker_第1张图片

5 查看docker版本 #docker version

Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
[root@localhost ~]# 

至此docker安装成功

你可能感兴趣的:(工作整理,docker,centos,linux)