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的低版本并不能很 ...
随机推荐
- lex&yacc4
yacc: we cannt use the $$ value dirictly. we need get it irrotly;
- 最小化Spring XML配置
Spring提供两种技巧,可以帮助我们减少XML的配置数量. 1.自动装配(autowiring)有助于减少甚至消除配置<property>元素和<constructor-arg&g ...
- HTML5之 WebSockets
------- 新的网络连接技术 - Web-Sockets 持续连接数据流 全双工工作方式 http补充品而非替代品 - 应用场景 聊天室 股票显示 在线游戏(尤为突出) - 2byte的通信 1b ...
- grails的插件
今天来歪理邪说一下grails的插件. 有个问题让本人困惑了一段时间,插件是属于grails的,还是属于某个工程的?为什么会有这个问题呢,这涉及到grails插件的安装方式. grails的插件像是一 ...
- Android 使用日常
如何让Android Studio的智能感知不区分大小写? http://ask.csdn.net/questions/155844
- Clone table header and set as the first element, and replace header's th with td
Clone table header and replace header's th with td var tableHeaderRow = '#tableId tbody tr:nth-child ...
- thinkphp 使用过程中遇到的一个小函数
1.实现导出Excel文件,并在导出的文件中显示图片 //导出 public function push(){ $goods_list=M('Dajia')->select(); $data = ...
- PHP微信开发代码
1,SAE上申请服务器 2,绑定测试账号 3,Token验证 <?php /* http://www.cnblogs.com/xrhou12326/ CopyRight 2014 All Rig ...
- 如何将无线路由器作为交换机,将光猫(路由器A)分出来的一条网线接到自家另一台路由器B上,最大化利用网络资源
从隔壁邻居只接了一条网线过来,由于无线网络的距离有限,不能覆盖到家里任何角落,然而,我又想家里一台台式电脑和无线设备都能够连接wifi进行上网。 摸索了一个上午,知道将家里的无线路由器B当作一个无线A ...
- (转)《深入理解java虚拟机》学习笔记4——Java虚拟机垃圾收集器
Java堆内存被划分为新生代和年老代两部分,新生代主要使用复制和标记-清除垃圾回收算法,年老代主要使用标记-整理垃圾回收算法,因此java虚拟中针对新生代和年老代分别提供了多种不同的垃圾收集器,JDK ...