重要:有些人在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. 我对c++对象内存布局的理解

    引言 结合网上的一些资料,通过自己的一番摸索,得出了一点个人见解.现在写下来,希望与各位同学共同探讨,共同进步. 以下所有代码均是在VS2012下测试. 一个普通的基类 1: #include < ...

  2. mouseenter 事件,固定右侧客服特效

    不论鼠标指针穿过被选元素或其子元素,都会触发 mouseover 事件. 只有在鼠标指针穿过被选元素时,才会触发 mouseenter 事件. 当鼠标指针离开元素时,会发生 mouseleave 事件 ...

  3. Linux下通过shell脚本创建账户

    当我们在linux平台上开发一些项目时,或者有一些项目是需要部署到linux系统上时,有时候会涉及到linux上的特定的账户,例如有一些项目需要运行在某些特定的账户下,或者有时候需要在全新的环境上搭建 ...

  4. sublime 经验总结 主题有 less2css

    1. 安装“包控制”模块 操作步骤见该网站:https://sublime.wbond.net/installation#Simple sublime2的代码如下: import urllib2,os ...

  5. Linux 查看某个用户的进程

    Linux 查看某个用户的进程 To view only the processes owned by a specific user, use the following command: top ...

  6. POJ 1001 解题报告 高精度大整数乘法模版

    题目是POJ1001 Exponentiation  虽然是小数的幂 最终还是转化为大整数的乘法 这道题要考虑的边界情况比较多 做这道题的时候,我分析了 网上的两个解题报告,发现都有错误,说明OJ对于 ...

  7. xaml中绑定单例属性

    在项目中经常会遇到,同一个字典表绑定到多个ItemsControl上的情况,可以在单例中创建一个List,xaml上绑定即可.看代码: 1,XAML <Grid> <StackPan ...

  8. 【转】perl如何避免脚本在windows中闪一下就关闭

    写好了perl程序,运行后,准备等待结果输出时,结果双击后,看到屏幕闪了一下,然后什么都没有了,根本没有机会然你看到输出的结果 当你刚开始学习perl的时候,写好了程序,准备兴高采烈的等待结果输出时, ...

  9. Sqoop 1.99.4 安装

    1.安装准备工作:已经装好的 hadoop 环境是 hadoop-2.5.1 64位下载的sqoop安装包(注意是hadoop200)http://www.us.apache.org/dist/sqo ...

  10. Windows.Andy.Code4App.dll Win8.1/WP8.1通用类库@ver1.0.0

    直接入题! Win8.1和WP8.1眼下已经渐渐融为一体,WP8.1不断向Win8.1靠拢,虽然一些方法上WP8.1和Win8.1不同(ps:WP8.1和Win8.1的不同之处),但大部分还是相同的. ...