阿里云服务器安装docker

1.阿里云服务器系统选择centos7。

2.yum install docker

3.service docker start

4.如果报错,Could not find a free IP address range for interface 'docker0'. Please configure its address manually and run 'docker -b docker0',则是系统路由问题,将/etc/sysconfig/network-scripts/route-eth0中的172开头的注释掉即可

#172.16.0.0/12 via 10.169.207.247 dev eth0

5.docker info输出即为正常

Containers: 0

Images: 4

Storage Driver: devicemapper

 Pool Name: docker-202:1-659458-pool

 Pool Blocksize: 65.54 kB

 Data file: /var/lib/docker/devicemapper/devicemapper/data

 Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata

 Data Space Used: 312 MB

 Data Space Total: 107.4 GB

 Metadata Space Used: 868.4 kB

 Metadata Space Total: 2.147 GB

 Library Version: 1.02.84-RHEL7 (2014-03-26)

Execution Driver: native-0.2

Kernel Version: 3.10.0-123.9.3.el7.x86_64

Operating System: CentOS Linux 7 (Core)

你可能感兴趣的:(docker)