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的低版本并不能很 ...
随机推荐
- gdb/valgrind/coredump to debug c/cpp program
gdb/valgrind/coredump 调试 1.gdb 调试 while/for 循环 ①如果在调试 while/for的时候,可以用until xxx(其中,xxx代表 行号)直接跳转到循环后 ...
- linux之Gcc使用
本篇文章摘自 http://blog.csdn.net/ljzcom/article/details/7213101 对于Gcc自带的很多命令行,只有具体编程里面用到了或者看到别人真真用到的,用的目的 ...
- CLI-error
SQL_ERROR: One of the following occurred: RecNumber was negative or 0. BufferLength was less than ze ...
- 停车场管理软件附带源代码 J2EE服务端+android客户端
该源码是停车场管理软件附带源代码 J2EE服务端+android客户端,也是一套停车场管理车辆进出的管理软,喜欢的朋友可以看看吧. 应用的后台管理主要功能介绍:1 机构管理 ,机构有从属管理< ...
- 如何禁止KnockoutJs在VS2012的智能格式化
http://blogs.msdn.com/b/webdev/archive/2013/03/04/disabling-knockout-intellisense.aspx 我升级了一下VS2012, ...
- zabbix3.0.3 设置邮件报警
在zabbix3.0.3 设置报警这里卡了两天.终于解决了,这里我使用的mailx来作为发送邮件的客户端 1.设置mailx发信账号 yum -y install mailx ln -s /bin/m ...
- jquery横向滚动条
此代码献给wendy 由于工作太忙,下次再整理成插件调用,先记录下来,欢迎同学们提意见. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tr ...
- mac安装memcache
1.wget http://blog.s135.com/soft/linux/nginx_php/memcache/memcache-2.2.5.tgz 2.tar zxvf memcache-2.2 ...
- Oracle SGA参数调整
一. SGA的组成: 自动 SGA 管理后,Oracle 可以自动为我们调整以下内存池的大小: shared pool buffer cache large pool java pool stream ...
- 1056. Mice and Rice (25)
时间限制 30 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Mice and Rice is the name of a pr ...