重要:有些人在vmware中安装了新的centos用于使用docker,但是往往会忽略了更换源与进行系统update,

这样会导致安装过程中出现诸多如下类问题,为了避免不必要的麻烦在安装docker前最好最到一下几点:

1.替换centos源为163或其他更适合的源,具体操作可以查看我另一篇文章《戳这里
2.清空缓存(yum clean\ yum makecache)
3.系统更新(yum update)
  • 确认环境
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.0. (Core)
  • docker安装 -> 报错
[root@localhost ~]# yum install docker
Loaded plugins: fastestmirror, langpacks
Repodata is over weeks old. Install yum-cron? Or run: yum makecache fast
Existing lock /var/run/yum.pid: another copy is running as pid 11946.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : M RSS ( MB VSZ)
Started: Thu Jul :: - : ago
State : Sleeping, pid:
  • 解决方法

    rm -rf /run/yum.pid
[root@localhost run]# rm -rf /run/yum.pid
  • 继续docker安装 -> 报错
[root@localhost run]# yum install docker
Loaded plugins: fastestmirror, langpacks
Repodata is over weeks old. Install yum-cron? Or run: yum makecache fast
base | 3.6 kB ::
extras | 3.4 kB ::
updates | 3.4 kB ::
(/): extras//x86_64/primary_db | kB ::
(/): updates//x86_64/primary_db | 5.7 MB ::
Determining fastest mirrors
* base: mirrors..com
* extras: mirrors..com
* updates: mirrors..com
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 :1.10.-.el7.centos will be installed
--> Processing Dependency: oci-systemd-hook = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: oci-register-machine = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: docker-forward-journald = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: docker-common = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: selinux-policy >= 3.13.- for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: docker-selinux >= 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: device-mapper-libs >= :1.02. for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: libsystemd.so.(LIBSYSTEMD_209)(64bit) for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: libsystemd.so.()(64bit) for package: docker-1.10.-.el7.centos.x86_64
--> Running transaction check
---> Package device-mapper-libs.x86_64 :1.02.-.el7 will be updated
--> Processing Dependency: device-mapper-libs = :1.02.-.el7 for package: :device-mapper-1.02.-.el7.x86_64
---> Package device-mapper-libs.x86_64 :1.02.-.el7_2. will be an update
---> Package docker-common.x86_64 :1.10.-.el7.centos will be installed
---> Package docker-forward-journald.x86_64 :1.10.-.el7.centos will be installed
---> Package docker-selinux.x86_64 :1.10.-.el7.centos will be installed
--> Processing Dependency: selinux-policy-targeted >= 3.13.- for package: docker-selinux-1.10.-.el7.centos.x86_64
--> Processing Dependency: selinux-policy-base >= 3.13.- for package: docker-selinux-1.10.-.el7.centos.x86_64
---> Package oci-register-machine.x86_64 :1.10.-.el7.centos will be installed
---> Package oci-systemd-hook.x86_64 :1.10.-.el7.centos will be installed
---> Package selinux-policy.noarch :3.12.-.el7 will be updated
---> Package selinux-policy.noarch :3.13.-.el7_2. will be an update
---> Package systemd-libs.x86_64 :-.el7 will be updated
--> Processing Dependency: systemd-libs = -.el7 for package: systemd--.el7.x86_64
---> Package systemd-libs.x86_64 :-.el7_2. will be an update
--> Running transaction check
---> Package device-mapper.x86_64 :1.02.-.el7 will be updated
--> Processing Dependency: device-mapper = :1.02.-.el7 for package: :device-mapper-event-1.02.-.el7.x86_64
---> Package device-mapper.x86_64 :1.02.-.el7_2. will be an update
---> Package selinux-policy-targeted.noarch :3.12.-.el7 will be updated
---> Package selinux-policy-targeted.noarch :3.13.-.el7_2. will be an update
---> Package systemd.x86_64 :-.el7 will be updated
--> Processing Dependency: systemd = -.el7 for package: libgudev1--.el7.x86_64
--> Processing Dependency: systemd = -.el7 for package: systemd-sysv--.el7.x86_64
--> Processing Dependency: systemd = -.el7 for package: systemd-python--.el7.x86_64
---> Package systemd.x86_64 :-.el7_2. will be an update
--> Processing Dependency: kmod >= - for package: systemd--.el7_2..x86_64
--> Running transaction check
---> Package device-mapper-event.x86_64 :1.02.-.el7 will be updated
---> Package device-mapper-event.x86_64 :1.02.-.el7_2. will be an update
--> Processing Dependency: device-mapper-event-libs = :1.02.-.el7_2. for package: :device-mapper-event-1.02.-.el7_2..x86_64
---> Package kmod.x86_64 :-.el7 will be updated
---> Package kmod.x86_64 :-.el7 will be an update
---> Package libgudev1.x86_64 :-.el7 will be updated
---> Package libgudev1.x86_64 :-.el7_2. will be an update
---> Package systemd-python.x86_64 :-.el7 will be updated
---> Package systemd-python.x86_64 :-.el7_2. will be an update
---> Package systemd-sysv.x86_64 :-.el7 will be updated
---> Package systemd-sysv.x86_64 :-.el7_2. will be an update
--> Running transaction check
---> Package device-mapper-event-libs.x86_64 :1.02.-.el7 will be updated
---> Package device-mapper-event-libs.x86_64 :1.02.-.el7_2. will be an update
--> Processing Conflict: systemd--.el7_2..x86_64 conflicts initscripts < 9.49.-
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package initscripts.x86_64 :9.49.-.el7 will be updated
---> Package initscripts.x86_64 :9.49.-.el7_2. will be an update
--> Processing Conflict: systemd--.el7_2..x86_64 conflicts dracut < -
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dracut.x86_64 :-.el7 will be updated
--> Processing Dependency: dracut = -.el7 for package: dracut-config-rescue--.el7.x86_64
--> Processing Dependency: dracut = -.el7 for package: dracut-network--.el7.x86_64
---> Package dracut.x86_64 :-.el7_2. will be an update
--> Running transaction check
---> Package dracut-config-rescue.x86_64 :-.el7 will be updated
---> Package dracut-config-rescue.x86_64 :-.el7_2. will be an update
---> Package dracut-network.x86_64 :-.el7 will be updated
---> Package dracut-network.x86_64 :-.el7_2. will be an update
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
docker x86_64 1.10.-.el7.centos extras 8.6 M
Updating:
dracut x86_64 -.el7_2. updates k
initscripts x86_64 9.49.-.el7_2. updates k
Installing for dependencies:
docker-common x86_64 1.10.-.el7.centos extras k
docker-forward-journald x86_64 1.10.-.el7.centos extras k
docker-selinux x86_64 1.10.-.el7.centos extras k
oci-register-machine x86_64 1.10.-.el7.centos extras 1.0 M
oci-systemd-hook x86_64 1.10.-.el7.centos extras k
Updating for dependencies:
device-mapper x86_64 :1.02.-.el7_2. updates k
device-mapper-event x86_64 :1.02.-.el7_2. updates k
device-mapper-event-libs x86_64 :1.02.-.el7_2. updates k
device-mapper-libs x86_64 :1.02.-.el7_2. updates k
dracut-config-rescue x86_64 -.el7_2. updates k
dracut-network x86_64 -.el7_2. updates k
kmod x86_64 -.el7 base k
libgudev1 x86_64 -.el7_2. updates k
selinux-policy noarch 3.13.-.el7_2. updates k
selinux-policy-targeted noarch 3.13.-.el7_2. updates 3.9 M
systemd x86_64 -.el7_2. updates 5.1 M
systemd-libs x86_64 -.el7_2. updates k
systemd-python x86_64 -.el7_2. updates k
systemd-sysv x86_64 -.el7_2. updates k Transaction Summary
============================================================================================================================================
Install Package (+ Dependent packages)
Upgrade Packages (+ Dependent packages) Total download size: M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
updates//x86_64/prestodelta | kB ::
warning: /var/cache/yum/x86_64//updates/packages/device-mapper-1.02.-.el7_2..x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for device-mapper-1.02.-.el7_2..x86_64.rpm is not installed
(/): device-mapper-1.02.-.el7_2..x86_64.rpm | kB ::
(/): device-mapper-event-libs-1.02.-.el7_2..x86_64.rpm | kB ::
Public key for docker-forward-journald-1.10.-.el7.centos.x86_64.rpm is not installed ] 0.0 B/s | 1.2 MB --:--:-- ETA
(/): docker-forward-journald-1.10.-.el7.centos.x86_64.rpm | kB ::
(/): docker-selinux-1.10.-.el7.centos.x86_64.rpm | kB ::
(/): docker-common-1.10.-.el7.centos.x86_64.rpm | kB ::
(/): dracut--.el7_2..x86_64.rpm | kB ::
(/): dracut-network--.el7_2..x86_64.rpm | kB ::
(/): device-mapper-event-1.02.-.el7_2..x86_64.rpm | kB ::
(/): initscripts-9.49.-.el7_2..x86_64.rpm | kB ::
Public key for kmod--.el7.x86_64.rpm is not installed
(/): kmod--.el7.x86_64.rpm | kB ::
(/): libgudev1--.el7_2..x86_64.rpm | kB ::
(/): oci-systemd-hook-1.10.-.el7.centos.x86_64.rpm | kB ::
(/): device-mapper-libs-1.02.-.el7_2..x86_64.rpm | kB ::
(/): selinux-policy-3.13.-.el7_2..noarch.rpm | kB ::
(/): dracut-config-rescue--.el7_2..x86_64.rpm | kB ::
(/): systemd-libs--.el7_2..x86_64.rpm | kB ::
(/): docker-1.10.-.el7.centos.x86_64.rpm | 8.6 MB ::
(/): systemd-python--.el7_2..x86_64.rpm | kB ::
(/): systemd-sysv--.el7_2..x86_64.rpm | kB ::
(/): oci-register-machine-1.10.-.el7.centos.x86_64.rpm | 1.0 MB ::
(/): selinux-policy-targeted-3.13.-.el7_2..noarch.rpm | 3.9 MB ::
(/): systemd--.el7_2..x86_64.rpm | 5.1 MB ::
--------------------------------------------------------------------------------------------------------------------------------------------
Total 3.1 MB/s | MB ::
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
Fingerprint: ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release--0.1406.el7.centos.2.3.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
Is this ok [y/N]: y
Running transaction check
Running transaction test Transaction check error:
file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64 Error Summary
-------------
  • 解决方法

    yum install libdevmapper* -y
[root@localhost run]# yum install libdevmapper* -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors..com
* extras: mirrors..com
* updates: mirrors..com
Resolving Dependencies
--> Running transaction check
---> Package device-mapper-event-libs.x86_64 :1.02.-.el7 will be updated
--> Processing Dependency: device-mapper-event-libs = :1.02.-.el7 for package: :device-mapper-event-1.02.-.el7.x86_64
---> Package device-mapper-event-libs.x86_64 :1.02.-.el7_2. will be an update
---> Package device-mapper-libs.x86_64 :1.02.-.el7 will be updated
--> Processing Dependency: device-mapper-libs = :1.02.-.el7 for package: :device-mapper-1.02.-.el7.x86_64
---> Package device-mapper-libs.x86_64 :1.02.-.el7_2. will be an update
---> Package lvm2-libs.x86_64 :2.02.-.el7 will be updated
--> Processing Dependency: lvm2-libs = :2.02.-.el7 for package: :lvm2-2.02.-.el7.x86_64
---> Package lvm2-libs.x86_64 :2.02.-.el7_2. will be an update
--> Running transaction check
---> Package device-mapper.x86_64 :1.02.-.el7 will be updated
---> Package device-mapper.x86_64 :1.02.-.el7_2. will be an update
---> Package device-mapper-event.x86_64 :1.02.-.el7 will be updated
---> Package device-mapper-event.x86_64 :1.02.-.el7_2. will be an update
---> Package lvm2.x86_64 :2.02.-.el7 will be updated
---> Package lvm2.x86_64 :2.02.-.el7_2. will be an update
--> Processing Dependency: device-mapper-persistent-data >= 0.5.- for package: :lvm2-2.02.-.el7_2..x86_64
--> Running transaction check
---> Package device-mapper-persistent-data.x86_64 :0.3.-.el7 will be updated
---> Package device-mapper-persistent-data.x86_64 :0.5.-.el7 will be an update
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Updating:
device-mapper-event-libs x86_64 :1.02.-.el7_2. updates k
device-mapper-libs x86_64 :1.02.-.el7_2. updates k
lvm2-libs x86_64 :2.02.-.el7_2. updates k
Updating for dependencies:
device-mapper x86_64 :1.02.-.el7_2. updates k
device-mapper-event x86_64 :1.02.-.el7_2. updates k
device-mapper-persistent-data x86_64 0.5.-.el7 base k
lvm2 x86_64 :2.02.-.el7_2. updates 1.0 M Transaction Summary
============================================================================================================================================
Upgrade Packages (+ Dependent packages) Total size: 3.0 M
Total download size: 2.2 M
Downloading packages:
No Presto metadata available for base
(/): device-mapper-persistent-data-0.5.-.el7.x86_64.rpm | kB ::
(/): lvm2-2.02.-.el7_2..x86_64.rpm | 1.0 MB ::
(/): lvm2-libs-2.02.-.el7_2..x86_64.rpm | kB ::
--------------------------------------------------------------------------------------------------------------------------------------------
Total kB/s | 2.2 MB ::
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : :device-mapper-1.02.-.el7_2..x86_64 /
Updating : :device-mapper-libs-1.02.-.el7_2..x86_64 /
Updating : :device-mapper-event-libs-1.02.-.el7_2..x86_64 /
Updating : :device-mapper-event-1.02.-.el7_2..x86_64 /
Updating : :lvm2-libs-2.02.-.el7_2..x86_64 /
Updating : device-mapper-persistent-data-0.5.-.el7.x86_64 /
Updating : :lvm2-2.02.-.el7_2..x86_64 /
ln -s '/usr/lib/systemd/system/lvm2-lvmetad.socket' '/etc/systemd/system/sysinit.target.wants/lvm2-lvmetad.socket'
ln -s '/usr/lib/systemd/system/lvm2-lvmpolld.socket' '/etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket'
Cleanup : :lvm2-2.02.-.el7.x86_64 /
Cleanup : :lvm2-libs-2.02.-.el7.x86_64 /
Cleanup : :device-mapper-event-1.02.-.el7.x86_64 /
Cleanup : :device-mapper-event-libs-1.02.-.el7.x86_64 /
Cleanup : :device-mapper-1.02.-.el7.x86_64 /
Cleanup : :device-mapper-libs-1.02.-.el7.x86_64 /
Cleanup : device-mapper-persistent-data-0.3.-.el7.x86_64 /
Verifying : :device-mapper-libs-1.02.-.el7_2..x86_64 /
Verifying : :device-mapper-1.02.-.el7_2..x86_64 /
Verifying : :lvm2-2.02.-.el7_2..x86_64 /
Verifying : device-mapper-persistent-data-0.5.-.el7.x86_64 /
Verifying : :lvm2-libs-2.02.-.el7_2..x86_64 /
Verifying : :device-mapper-event-libs-1.02.-.el7_2..x86_64 /
Verifying : :device-mapper-event-1.02.-.el7_2..x86_64 /
Verifying : :lvm2-2.02.-.el7.x86_64 /
Verifying : device-mapper-persistent-data-0.3.-.el7.x86_64 /
Verifying : :lvm2-libs-2.02.-.el7.x86_64 /
Verifying : :device-mapper-event-libs-1.02.-.el7.x86_64 /
Verifying : :device-mapper-libs-1.02.-.el7.x86_64 /
Verifying : :device-mapper-event-1.02.-.el7.x86_64 /
Verifying : :device-mapper-1.02.-.el7.x86_64 / Updated:
device-mapper-event-libs.x86_64 :1.02.-.el7_2. device-mapper-libs.x86_64 :1.02.-.el7_2. lvm2-libs.x86_64 :2.02.-.el7_2. Dependency Updated:
device-mapper.x86_64 :1.02.-.el7_2. device-mapper-event.x86_64 :1.02.-.el7_2.
device-mapper-persistent-data.x86_64 :0.5.-.el7 lvm2.x86_64 :2.02.-.el7_2. Complete!
  • 继续docker安装 -> 成功
[root@localhost run]# yum install docker
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors..com
* extras: mirrors..com
* updates: mirrors..com
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 :1.10.-.el7.centos will be installed
--> Processing Dependency: oci-systemd-hook = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: oci-register-machine = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: docker-forward-journald = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: docker-common = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: selinux-policy >= 3.13.- for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: docker-selinux >= 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: libsystemd.so.(LIBSYSTEMD_209)(64bit) for package: docker-1.10.-.el7.centos.x86_64
--> Processing Dependency: libsystemd.so.()(64bit) for package: docker-1.10.-.el7.centos.x86_64
--> Running transaction check
---> Package docker-common.x86_64 :1.10.-.el7.centos will be installed
---> Package docker-forward-journald.x86_64 :1.10.-.el7.centos will be installed
---> Package docker-selinux.x86_64 :1.10.-.el7.centos will be installed
--> Processing Dependency: selinux-policy-targeted >= 3.13.- for package: docker-selinux-1.10.-.el7.centos.x86_64
--> Processing Dependency: selinux-policy-base >= 3.13.- for package: docker-selinux-1.10.-.el7.centos.x86_64
---> Package oci-register-machine.x86_64 :1.10.-.el7.centos will be installed
---> Package oci-systemd-hook.x86_64 :1.10.-.el7.centos will be installed
---> Package selinux-policy.noarch :3.12.-.el7 will be updated
---> Package selinux-policy.noarch :3.13.-.el7_2. will be an update
---> Package systemd-libs.x86_64 :-.el7 will be updated
--> Processing Dependency: systemd-libs = -.el7 for package: systemd--.el7.x86_64
---> Package systemd-libs.x86_64 :-.el7_2. will be an update
--> Running transaction check
---> Package selinux-policy-targeted.noarch :3.12.-.el7 will be updated
---> Package selinux-policy-targeted.noarch :3.13.-.el7_2. will be an update
---> Package systemd.x86_64 :-.el7 will be updated
--> Processing Dependency: systemd = -.el7 for package: libgudev1--.el7.x86_64
--> Processing Dependency: systemd = -.el7 for package: systemd-python--.el7.x86_64
--> Processing Dependency: systemd = -.el7 for package: systemd-sysv--.el7.x86_64
---> Package systemd.x86_64 :-.el7_2. will be an update
--> Processing Dependency: kmod >= - for package: systemd--.el7_2..x86_64
--> Running transaction check
---> Package kmod.x86_64 :-.el7 will be updated
---> Package kmod.x86_64 :-.el7 will be an update
---> Package libgudev1.x86_64 :-.el7 will be updated
---> Package libgudev1.x86_64 :-.el7_2. will be an update
---> Package systemd-python.x86_64 :-.el7 will be updated
---> Package systemd-python.x86_64 :-.el7_2. will be an update
---> Package systemd-sysv.x86_64 :-.el7 will be updated
---> Package systemd-sysv.x86_64 :-.el7_2. will be an update
--> Processing Conflict: systemd--.el7_2..x86_64 conflicts initscripts < 9.49.-
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package initscripts.x86_64 :9.49.-.el7 will be updated
---> Package initscripts.x86_64 :9.49.-.el7_2. will be an update
--> Processing Conflict: systemd--.el7_2..x86_64 conflicts dracut < -
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dracut.x86_64 :-.el7 will be updated
--> Processing Dependency: dracut = -.el7 for package: dracut-config-rescue--.el7.x86_64
--> Processing Dependency: dracut = -.el7 for package: dracut-network--.el7.x86_64
---> Package dracut.x86_64 :-.el7_2. will be an update
--> Running transaction check
---> Package dracut-config-rescue.x86_64 :-.el7 will be updated
---> Package dracut-config-rescue.x86_64 :-.el7_2. will be an update
---> Package dracut-network.x86_64 :-.el7 will be updated
---> Package dracut-network.x86_64 :-.el7_2. will be an update
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
docker x86_64 1.10.-.el7.centos extras 8.6 M
Updating:
dracut x86_64 -.el7_2. updates k
initscripts x86_64 9.49.-.el7_2. updates k
Installing for dependencies:
docker-common x86_64 1.10.-.el7.centos extras k
docker-forward-journald x86_64 1.10.-.el7.centos extras k
docker-selinux x86_64 1.10.-.el7.centos extras k
oci-register-machine x86_64 1.10.-.el7.centos extras 1.0 M
oci-systemd-hook x86_64 1.10.-.el7.centos extras k
Updating for dependencies:
dracut-config-rescue x86_64 -.el7_2. updates k
dracut-network x86_64 -.el7_2. updates k
kmod x86_64 -.el7 base k
libgudev1 x86_64 -.el7_2. updates k
selinux-policy noarch 3.13.-.el7_2. updates k
selinux-policy-targeted noarch 3.13.-.el7_2. updates 3.9 M
systemd x86_64 -.el7_2. updates 5.1 M
systemd-libs x86_64 -.el7_2. updates k
systemd-python x86_64 -.el7_2. updates k
systemd-sysv x86_64 -.el7_2. updates k Transaction Summary
============================================================================================================================================
Install Package (+ Dependent packages)
Upgrade Packages (+ Dependent packages) Total size: M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : systemd-libs--.el7_2..x86_64 /
Updating : dracut--.el7_2..x86_64 /
Updating : kmod--.el7.x86_64 /
Updating : systemd--.el7_2..x86_64 /
Updating : selinux-policy-3.13.-.el7_2..noarch /
Updating : selinux-policy-targeted-3.13.-.el7_2..noarch /
140k
Installing : docker-selinux-1.10.-.el7.centos.x86_64 /
Installing : oci-register-machine-1.10.-.el7.centos.x86_64 /
Installing : docker-forward-journald-1.10.-.el7.centos.x86_64 /
Installing : docker-common-1.10.-.el7.centos.x86_64 /
Installing : oci-systemd-hook-1.10.-.el7.centos.x86_64 /
Installing : docker-1.10.-.el7.centos.x86_64 /
Updating : initscripts-9.49.-.el7_2..x86_64 /
Updating : systemd-sysv--.el7_2..x86_64 /
Updating : systemd-python--.el7_2..x86_64 /
Updating : dracut-config-rescue--.el7_2..x86_64 /
Updating : dracut-network--.el7_2..x86_64 /
Updating : libgudev1--.el7_2..x86_64 /
Cleanup : selinux-policy-targeted-3.12.-.el7.noarch /
warning: file /etc/selinux/targeted/modules/active/modules/vbetool.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/pkcsslotd.pp: remove failed: No such file or directory
Cleanup : systemd-sysv--.el7.x86_64 /
Cleanup : dracut-network--.el7.x86_64 /
Cleanup : dracut-config-rescue--.el7.x86_64 /
Cleanup : dracut--.el7.x86_64 /
Cleanup : systemd-python--.el7.x86_64 /
Cleanup : libgudev1--.el7.x86_64 /
Cleanup : initscripts-9.49.-.el7.x86_64 /
Cleanup : selinux-policy-3.12.-.el7.noarch /
Cleanup : systemd--.el7.x86_64 /
Cleanup : kmod--.el7.x86_64 /
Cleanup : systemd-libs--.el7.x86_64 /
Verifying : dracut-config-rescue--.el7_2..x86_64 /
Verifying : initscripts-9.49.-.el7_2..x86_64 /
Verifying : dracut-network--.el7_2..x86_64 /
Verifying : oci-systemd-hook-1.10.-.el7.centos.x86_64 /
Verifying : kmod--.el7.x86_64 /
Verifying : libgudev1--.el7_2..x86_64 /
Verifying : selinux-policy-3.13.-.el7_2..noarch /
Verifying : docker-selinux-1.10.-.el7.centos.x86_64 /
Verifying : systemd-libs--.el7_2..x86_64 /
Verifying : dracut--.el7_2..x86_64 /
Verifying : systemd--.el7_2..x86_64 /
Verifying : docker-common-1.10.-.el7.centos.x86_64 /
Verifying : docker-1.10.-.el7.centos.x86_64 /
Verifying : systemd-sysv--.el7_2..x86_64 /
Verifying : docker-forward-journald-1.10.-.el7.centos.x86_64 /
Verifying : systemd-python--.el7_2..x86_64 /
Verifying : selinux-policy-targeted-3.13.-.el7_2..noarch /
Verifying : oci-register-machine-1.10.-.el7.centos.x86_64 /
Verifying : dracut-config-rescue--.el7.x86_64 /
Verifying : kmod--.el7.x86_64 /
Verifying : systemd-python--.el7.x86_64 /
Verifying : selinux-policy-3.12.-.el7.noarch /
Verifying : dracut-network--.el7.x86_64 /
Verifying : systemd-sysv--.el7.x86_64 /
Verifying : dracut--.el7.x86_64 /
Verifying : initscripts-9.49.-.el7.x86_64 /
Verifying : systemd-libs--.el7.x86_64 /
Verifying : systemd--.el7.x86_64 /
Verifying : selinux-policy-targeted-3.12.-.el7.noarch /
Verifying : libgudev1--.el7.x86_64 / Installed:
docker.x86_64 :1.10.-.el7.centos Dependency Installed:
docker-common.x86_64 :1.10.-.el7.centos docker-forward-journald.x86_64 :1.10.-.el7.centos
docker-selinux.x86_64 :1.10.-.el7.centos oci-register-machine.x86_64 :1.10.-.el7.centos
oci-systemd-hook.x86_64 :1.10.-.el7.centos Updated:
dracut.x86_64 :-.el7_2. initscripts.x86_64 :9.49.-.el7_2. Dependency Updated:
dracut-config-rescue.x86_64 :-.el7_2. dracut-network.x86_64 :-.el7_2.
kmod.x86_64 :-.el7 libgudev1.x86_64 :-.el7_2.
selinux-policy.noarch :3.13.-.el7_2. selinux-policy-targeted.noarch :3.13.-.el7_2.
systemd.x86_64 :-.el7_2. systemd-libs.x86_64 :-.el7_2.
systemd-python.x86_64 :-.el7_2. systemd-sysv.x86_64 :-.el7_2. Complete!
  • 查看docker版本信息

    docker version 
[root@localhost run]# docker version
Client:
Version: 1.10.
API version: 1.22
Package version: docker-common-1.10.-.el7.centos.x86_64
Go version: go1.4.2
Git commit: 9419b24-unsupported
Built: Fri Jun ::
OS/Arch: linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

CentOS7安装Docker时的异常报错与解决方法的更多相关文章

  1. 安装docker17.06.0版本报错和解决方法

    本人在自己电脑的虚拟机里安装docker ce 17.06.0版本的时候报如下错误: [root@manager2 yum.repos.d]# yum install docker-ce-17.06. ...

  2. 创建maven项目时pom.xml报错的解决方法

    创建maven项目时pom.xml时: 出现如下报错信息: Failure to transfer commons-lang:commons-lang:jar:2.1 from https://rep ...

  3. [Python]输出中文报错的解决方法

    问题现象:在PyCharm工具编辑python语句输出中文时,程序报错. 解决方法(2种): 1.在代码开头加#coding=utf-8(注意要加#) 2.还是在代码开头加#-*- coding: u ...

  4. Linux安装ElasticSearch启动报错的解决方法

    Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error det ...

  5. vue项目初始化时npm run dev报错webpack-dev-server解决方法

    vue项目初始化时npm run dev报错webpack-dev-server解决方法 原因:这是新版webpack存在的BUG,卸载现有的新版本webpack,装老版本就好webpack-dev- ...

  6. Xamarin开发安装Visual Studio 2015 update2报错的解决办法

    Xamarin开发安装Visual Studio 2015 update2报错的解决办法错误信息:update 2 requires a member of the visual studio 201 ...

  7. 网站eurl.axd报错的解决方法

    网站eurl.axd报错的解决方法 错误发生的原因是当ASP.NET检测到Web站点配置为使用ASP.NET 4.0,本地ASP.NET 4.0 的组件会传递一个不能扩展的 URL到ASP.NET的管 ...

  8. SQL Server2008数据库报错与解决方法

    一. 报错信息 启动MSSQLSERVER时有以下报错信息 打开SQL SERVER配置管理器,发现以下情况报错: 原因:由于先前安装了2005版VS,然后又安装了2015版VS 解决办法:卸载Loc ...

  9. 源码编译apache报错的解决方法

    源码编译apache报错的解决方法   问题介绍 在源码编译安装httpd时,./configure执行无错误,到make时就报错,在网络上搜索了很多文章,很多方法如换apr-util的低版本并不能很 ...

随机推荐

  1. HOWTO re

    \w 字母数字字符 [a-z A-Z 0-9_] \W 非字母数组字符 [^a-z-A-Z 0-9_] \d 十进制数字 [0-9] \D 非数字字符 [^0-9] \s 空白字符 [\t\n\r\f ...

  2. Ubuntu环境变量——添加与删除

    转自:http://beanocean.diandian.com/post/2013-11-09/40060047963 注: 1.作者的系统是Ubuntu 13.10,在其他linux发行版中环境变 ...

  3. js 正则实例

    1.匹配url参数 var re = /([^&=]+)=?([^&]*)/g while (r = re.exec("aaa1a=aabbbbbbb")) { a ...

  4. 仿春雨医生 安卓app(android)

    仿春雨医生 安卓app(android) 目前APP处与开发完善中,可过程序自下载更新,如有BUG报错,请联系QQ 131 065 1206 支持安卓(android) .IOS(IPHONE),PA ...

  5. 全面理解BFC

    BFC 已经是一个耳听熟闻的词语了,网上有许多关于 BFC 的文章,介绍了如何触发 BFC 以及 BFC 的一些用处(如清浮动,防止 margin 重叠等).虽然我知道如何利用 BFC 解决这些问题, ...

  6. 如何开发 Grunt 插件

    创建 grunt 插件 准备工作:(node/npm/git 安装,在此不做赘述) yeoman generator 可以自动生成一个插件模板. 安装 yo npm install -g yo 安装 ...

  7. linux系统时间修改及同步

    时间修改date 月日时分年.秒date -s可以直接设置系统时间 比如将系统时间设定成1996年6月10日的命令如下.#date -s 06/10/96将系统时间设定成下午1点12分0秒的命令如下. ...

  8. Android使用百度地图API实现GPS步行轨迹

    百度地图Android SDK下载:http://developer.baidu.com/map/sdkandev-download.htm 下面是效果: 采样点取得太频繁所以看起来像是一个个点... ...

  9. 使用Dreamweaver批量删除PHP项目中的单行注释和多行注释

    1.删除单行注释 打开Dreamweaver的查找工具,选择正则替换如图: 里面的//.*是正则匹配单行注释的表达式   2.删除多行注释 同样用正则查找匹配,直接上图咯:  其中正则表达式为/\*[ ...

  10. python 实现文件批量拷贝

    场景:某个文件夹下面包含数量巨大的文件,需求需要将这些文件按组(比如5000个一组)存放到不同的目录中去. # Filename: CopyFiles.py import os import os.p ...