问题:CentOS 7.0部署Docker报错

CentOS7.0版本

[root@localhostcdrom]# uname -a

Linuxlocalhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014x86_64 x86_64 x86_64 GNU/Linux

 

 

Docker版本

docker         x86_64         1.5.0-28.el7.centos            extras         7.2 M

 

 

 

 

[root@localhostmnt]# docker info

FATA[0000] Get http:///var/run/docker.sock/v1.18/info:dial unix /var/run/docker.sock: no such file or directory. Are you trying toconnect to a TLS-enabled daemon without TLS?

 

 

 

[root@localhostrun]# systemctl docker start

Unknown operation'docker'.

[root@localhostrun]# docker info

FATA[0000] Cannotconnect to the Docker daemon. Is 'docker -d' running on this host?

 

 

docker-d查看提示 libdevmapper.so.1.02不能被定义

[root@localhostrun]#  docker -d

INFO[0000] +jobserveapi(unix:///var/run/docker.sock)  

INFO[0000] Listeningfor HTTP on unix (/var/run/docker.sock)

docker: relocationerror: docker: symbol dm_task_get_info_with_deferred_remove, version Base notdefined in filelibdevmapper.so.1.02 with link time reference

 

 

 

安装libdevmapper.so.1.02(在CentOS7.0光盘中提供)

[root@localhost cdrom]# yuminstall libdevmapper* -y

Loaded plugins:fastestmirror, langpacks

Repository debug islisted more than once in the configuration

Loading mirrorspeeds from cached hostfile

 * base: mirrors.btte.net

 * extras: mirrors.btte.net

 * updates: mirrors.btte.net

ResolvingDependencies

--> Runningtransaction check

---> Packagedevice-mapper-event-libs.x86_64 7:1.02.84-14.el7 will be updated

--> ProcessingDependency: device-mapper-event-libs = 7:1.02.84-14.el7 for package:7:device-mapper-event-1.02.84-14.el7.x86_64

---> Packagedevice-mapper-event-libs.x86_64 7:1.02.93-3.el7 will be an update

---> Packagedevice-mapper-libs.x86_64 7:1.02.84-14.el7 will be updated

--> ProcessingDependency: device-mapper-libs = 7:1.02.84-14.el7 for package:7:device-mapper-1.02.84-14.el7.x86_64

---> Packagedevice-mapper-libs.x86_64 7:1.02.93-3.el7 will be an update

---> Packagelvm2-libs.x86_64 7:2.02.105-14.el7 will be updated

--> ProcessingDependency: lvm2-libs = 7:2.02.105-14.el7 for package:7:lvm2-2.02.105-14.el7.x86_64

---> Packagelvm2-libs.x86_64 7:2.02.115-3.el7 will be an update

--> Runningtransaction check

---> Packagedevice-mapper.x86_64 7:1.02.84-14.el7 will be updated

---> Packagedevice-mapper.x86_64 7:1.02.93-3.el7 will be an update

---> Packagedevice-mapper-event.x86_64 7:1.02.84-14.el7 will be updated

---> Packagedevice-mapper-event.x86_64 7:1.02.93-3.el7 will be an update

---> Packagelvm2.x86_64 7:2.02.105-14.el7 will be updated

---> Packagelvm2.x86_64 7:2.02.115-3.el7 will be an update

--> FinishedDependency Resolution

 

DependenciesResolved

 

===================================================================================

 Package                       Arch        Version                 Repository

                                                                             Size

===================================================================================

Updating:

 device-mapper-event-libs      x86_64      7:1.02.93-3.el7         base      151 k

 device-mapper-libs            x86_64      7:1.02.93-3.el7         base      259 k

 lvm2-libs                     x86_64      7:2.02.115-3.el7        base      765 k

Updating fordependencies:

 device-mapper                 x86_64      7:1.02.93-3.el7         base      209 k

 device-mapper-event           x86_64      7:1.02.93-3.el7         base      158 k

 lvm2                          x86_64      7:2.02.115-3.el7        base      896 k

 

Transaction Summary

===================================================================================

Upgrade  3 Packages (+3 Dependent packages)

 

Total download size:2.4 M

Downloadingpackages:

No Presto metadataavailable for base

(1/6):device-mapper-1.02.93-3.el7.x86_64.rpm               | 209 kB  00:00:01    

(2/6):device-mapper-event-1.02.93-3.el7.x86_64.rpm         | 158 kB  00:00:02    

(3/6):device-mapper-libs-1.02.93-3.el7.x86_64.rpm          | 259 kB  00:00:03    

(4/6):device-mapper-event-libs-1.02.93-3.el7.x86_64.rpm    | 151 kB 00:00:03    

(5/6):lvm2-libs-2.02.115-3.el7.x86_64.rpm                  | 765 kB  00:00:03    

(6/6):lvm2-2.02.115-3.el7.x86_64.rpm                       | 896 kB  00:00:22    

-----------------------------------------------------------------------------------

Total                                                108 kB/s | 2.4 MB  00:22    

Running transactioncheck

Running transactiontest

Transaction testsucceeded

Running transaction

  Updating  : 7:device-mapper-1.02.93-3.el7.x86_64                           1/12

  Updating  : 7:device-mapper-libs-1.02.93-3.el7.x86_64                      2/12

  Updating  : 7:device-mapper-event-libs-1.02.93-3.el7.x86_64                3/12

  Updating  : 7:device-mapper-event-1.02.93-3.el7.x86_64                     4/12

  Updating  : 7:lvm2-libs-2.02.115-3.el7.x86_64                              5/12

  Updating  : 7:lvm2-2.02.115-3.el7.x86_64                                   6/12

  Cleanup   : 7:lvm2-2.02.105-14.el7.x86_64                                  7/12

  Cleanup   : 7:lvm2-libs-2.02.105-14.el7.x86_64                             8/12

  Cleanup   : 7:device-mapper-event-1.02.84-14.el7.x86_64                    9/12

  Cleanup   : 7:device-mapper-event-libs-1.02.84-14.el7.x86_64              10/12

  Cleanup   : 7:device-mapper-1.02.84-14.el7.x86_64                         11/12

  Cleanup   : 7:device-mapper-libs-1.02.84-14.el7.x86_64                    12/12

  Verifying : 7:lvm2-2.02.115-3.el7.x86_64                                   1/12

  Verifying : 7:device-mapper-event-1.02.93-3.el7.x86_64                     2/12

  Verifying : 7:lvm2-libs-2.02.115-3.el7.x86_64                              3/12

  Verifying : 7:device-mapper-libs-1.02.93-3.el7.x86_64                      4/12

  Verifying : 7:device-mapper-event-libs-1.02.93-3.el7.x86_64                5/12

  Verifying : 7:device-mapper-1.02.93-3.el7.x86_64                           6/12

  Verifying : 7:lvm2-2.02.105-14.el7.x86_64                                  7/12

  Verifying : 7:device-mapper-event-1.02.84-14.el7.x86_64                    8/12

  Verifying : 7:lvm2-libs-2.02.105-14.el7.x86_64                             9/12

  Verifying : 7:device-mapper-event-libs-1.02.84-14.el7.x86_64              10/12

  Verifying : 7:device-mapper-libs-1.02.84-14.el7.x86_64                    11/12

  Verifying : 7:device-mapper-1.02.84-14.el7.x86_64                         12/12

 

Updated:

  device-mapper-event-libs.x86_647:1.02.93-3.el7                                 

  device-mapper-libs.x86_647:1.02.93-3.el7                                       

  lvm2-libs.x86_64 7:2.02.115-3.el7                                               

 

Dependency Updated:

  device-mapper.x86_64 7:1.02.93-3.el7  device-mapper-event.x86_64 7:1.02.93-3.el7

  lvm2.x86_64 7:2.02.115-3.el7        

 

Complete!

 

 

重新启动Docker

[root@localhostcdrom]# systemctl start docker

 

查看dockerinfo如果提示如下,证明已经部署完成

[root@localhostcdrom]# docker info

Containers: 0

Images: 0

Storage Driver:devicemapper

 Pool Name: docker-253:1-69282135-pool

 Pool Blocksize: 65.54 kB

 Backing Filesystem: xfs

 Data file: /dev/loop0

 Metadata file: /dev/loop1

 Data Space Used: 307.2 MB

 Data Space Total: 107.4 GB

 Data Space Available: 55.49 GB

 Metadata Space Used: 729.1 kB

 Metadata Space Total: 2.147 GB

 Metadata Space Available: 2.147 GB

 Udev Sync Supported: true

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

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

 Library Version: 1.02.93-RHEL7 (2015-01-28)

Execution Driver:native-0.2

Kernel Version:3.10.0-123.el7.x86_64

Operating System:CentOS Linux 7 (Core)

CPUs: 1

Total Memory: 1.784GiB

Name:localhost.localdomain

ID:HVUS:CCPV:GAPJ:S5RC:RZKH:7TCA:YOKB:YFSK:LA6M:EGEF:WQ55:6NRW

[root@localhostcdrom]# docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE

 

你可能感兴趣的:(Docker)