CentOS7安装Docker时的异常报错与解决方法
重要:有些人在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时的异常报错与解决方法的更多相关文章
- 安装docker17.06.0版本报错和解决方法
本人在自己电脑的虚拟机里安装docker ce 17.06.0版本的时候报如下错误: [root@manager2 yum.repos.d]# yum install docker-ce-17.06. ...
- 创建maven项目时pom.xml报错的解决方法
创建maven项目时pom.xml时: 出现如下报错信息: Failure to transfer commons-lang:commons-lang:jar:2.1 from https://rep ...
- [Python]输出中文报错的解决方法
问题现象:在PyCharm工具编辑python语句输出中文时,程序报错. 解决方法(2种): 1.在代码开头加#coding=utf-8(注意要加#) 2.还是在代码开头加#-*- coding: u ...
- Linux安装ElasticSearch启动报错的解决方法
Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error det ...
- vue项目初始化时npm run dev报错webpack-dev-server解决方法
vue项目初始化时npm run dev报错webpack-dev-server解决方法 原因:这是新版webpack存在的BUG,卸载现有的新版本webpack,装老版本就好webpack-dev- ...
- Xamarin开发安装Visual Studio 2015 update2报错的解决办法
Xamarin开发安装Visual Studio 2015 update2报错的解决办法错误信息:update 2 requires a member of the visual studio 201 ...
- 网站eurl.axd报错的解决方法
网站eurl.axd报错的解决方法 错误发生的原因是当ASP.NET检测到Web站点配置为使用ASP.NET 4.0,本地ASP.NET 4.0 的组件会传递一个不能扩展的 URL到ASP.NET的管 ...
- SQL Server2008数据库报错与解决方法
一. 报错信息 启动MSSQLSERVER时有以下报错信息 打开SQL SERVER配置管理器,发现以下情况报错: 原因:由于先前安装了2005版VS,然后又安装了2015版VS 解决办法:卸载Loc ...
- 源码编译apache报错的解决方法
源码编译apache报错的解决方法 问题介绍 在源码编译安装httpd时,./configure执行无错误,到make时就报错,在网络上搜索了很多文章,很多方法如换apr-util的低版本并不能很 ...
随机推荐
- Linux multiple open a device
Linux multiple open a device a device = /dev/wiegand Linux在多次打开同一个设备(/dev/wiegand)的时候,打开结果都是成功,但是在用w ...
- 关键字 static
A. 面向过程: 1. 静态全局变量:在全局变量前,加上关键词static,该变量就被定义成为一个静态全局变量. 1.1. 特点: |该变量在全局数据区分配内存: |未经初始化的静态全局变量会被程序自 ...
- JetBRAINS 系列注册机
转载说明 本篇文章可能已经更新,最新文章请转:http://www.sollyu.com/1118/ 说明 这个是一国外的大牛写的一个 JetBRAINS 系列注册机,他里面包含了很多,我就不打字了. ...
- htmlcleaner
String xpath = "//div"; Object[] myNodes = node.evaluateXPath(xpath); for (Object obj : my ...
- 在linux下配置Nginx+Java+PHP的环境
Apache对Java的支持很灵活,它们的结合度也很高,例如Apache+Tomcat和Apache+resin等都可以实现对Java应用 的支持.Apache一般采用一个内置模块来和Java应用服务 ...
- Python 信号量
信号的概念 信号(signal)-- 进程之间通讯的方式,是一种软件中断.一个进程一旦接收到信号就会打断原来的程序执行流程来处理信号. 几个常用信号: SIGINT 终止进程 中断进 ...
- WPF ListBox的DataTemplate例子
<ListBox Name="lbLogInfo"> <ListBox.ItemTemplate> <DataTemplate> <Gri ...
- AJAX 小实例(转摘)
最近老总提了一个小功能,在搜索网吧列表的时候加上网吧所属代理商这个条件,原有的搜索条件是一个地区二级联动,现在需要根据不同的地区显示不同的代理商集合.即在触发地区下拉框的onchange事件时,代理商 ...
- sqlplus中"-S"和"-L"用法
Usage: SQLPLUS [option] [logon] [start] <option> ::= -H | -V | [ [-L] [-M ] [-R ] [-S] ] &qu ...
- UINavigationBar导航栏相关设置
设置导航颜色 [[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1] ...