Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install packages in centos:7 #36

Closed
edwintorok opened this issue Dec 15, 2015 · 8 comments
Closed

Cannot install packages in centos:7 #36

edwintorok opened this issue Dec 15, 2015 · 8 comments

Comments

@edwintorok
Copy link

The centos:7 image on docker hub is almost completely unusable. Probably due to the release of CentOS 7.2 yesterday.

Could you provide a CentOS 7.2 docker image?

To reproduce try installing a package (e.g. initscripts or mailman), it tries to update systemd and fails.
The host is CentOS Linux release 7.1.1503 (Core)

[root@938743e43bda /]# yum install initscripts
Loaded plugins: fastestmirror
base                                                                                                                                                 | 3.6 kB  00:00:00     
extras                                                                                                                                               | 3.4 kB  00:00:00     
systemdcontainer                                                                                                                                     | 2.9 kB  00:00:00     
updates                                                                                                                                              | 3.4 kB  00:00:00     
(1/5): extras/7/x86_64/primary_db                                                                                                                    |  90 kB  00:00:00     
(2/5): base/7/x86_64/group_gz                                                                                                                        | 155 kB  00:00:00     
(3/5): systemdcontainer/primary_db                                                                                                                   |  21 kB  00:00:00     
(4/5): updates/7/x86_64/primary_db                                                                                                                   | 935 kB  00:00:00     
(5/5): base/7/x86_64/primary_db                                                                                                                      | 5.3 MB  00:00:01     
Determining fastest mirrors
 * base: ftp.ines.lug.ro
 * extras: mirrors.xservers.ro
 * updates: ftp.ines.lug.ro
Resolving Dependencies
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.30-1.el7 will be installed
--> Processing Dependency: sysvinit-tools >= 2.87-5 for package: initscripts-9.49.30-1.el7.x86_64
--> Processing Dependency: module-init-tools for package: initscripts-9.49.30-1.el7.x86_64
--> Running transaction check
---> Package kmod.x86_64 0:20-5.el7 will be installed
--> Processing Dependency: dracut for package: kmod-20-5.el7.x86_64
---> Package sysvinit-tools.x86_64 0:2.88-14.dsf.el7 will be installed
--> Running transaction check
---> Package dracut.x86_64 0:033-360.el7_2 will be installed
--> Processing Dependency: systemd >= 219 for package: dracut-033-360.el7_2.x86_64
--> Processing Dependency: kpartx for package: dracut-033-360.el7_2.x86_64
--> Running transaction check
---> Package kpartx.x86_64 0:0.4.9-85.el7 will be installed
--> Processing Dependency: libdevmapper.so.1.02(Base)(64bit) for package: kpartx-0.4.9-85.el7.x86_64
--> Processing Dependency: libdevmapper.so.1.02()(64bit) for package: kpartx-0.4.9-85.el7.x86_64
---> Package systemd.x86_64 0:219-19.el7 will be installed
--> Processing Dependency: systemd-libs = 219-19.el7 for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libkmod.so.2(LIBKMOD_5)(64bit) for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libcryptsetup.so.4(CRYPTSETUP_1.0)(64bit) for package: systemd-219-19.el7.x86_64
--> Processing Dependency: dbus for package: systemd-219-19.el7.x86_64
--> Processing Dependency: acl for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libqrencode.so.3()(64bit) for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libkmod.so.2()(64bit) for package: systemd-219-19.el7.x86_64
--> Processing Dependency: libcryptsetup.so.4()(64bit) for package: systemd-219-19.el7.x86_64
--> Running transaction check
---> Package acl.x86_64 0:2.2.51-12.el7 will be installed
---> Package cryptsetup-libs.x86_64 0:1.6.7-1.el7 will be installed
---> Package dbus.x86_64 1:1.6.12-13.el7 will be installed
--> Processing Dependency: dbus-libs(x86-64) = 1:1.6.12-13.el7 for package: 1:dbus-1.6.12-13.el7.x86_64
---> Package device-mapper-libs.x86_64 7:1.02.107-5.el7 will be installed
--> Processing Dependency: device-mapper = 7:1.02.107-5.el7 for package: 7:device-mapper-libs-1.02.107-5.el7.x86_64
---> Package kmod-libs.x86_64 0:20-5.el7 will be installed
---> Package qrencode-libs.x86_64 0:3.4.1-3.el7 will be installed
---> Package systemd-libs.x86_64 0:219-19.el7 will be installed
--> Running transaction check
---> Package dbus-libs.x86_64 1:1.6.12-11.el7 will be updated
---> Package dbus-libs.x86_64 1:1.6.12-13.el7 will be an update
---> Package device-mapper.x86_64 7:1.02.107-5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================
 Package                                        Arch                               Version                                        Repository                           Size
============================================================================================================================================================================
Installing:
 initscripts                                    x86_64                             9.49.30-1.el7                                  base                                429 k
Installing for dependencies:
 acl                                            x86_64                             2.2.51-12.el7                                  base                                 81 k
 cryptsetup-libs                                x86_64                             1.6.7-1.el7                                    base                                182 k
 dbus                                           x86_64                             1:1.6.12-13.el7                                base                                306 k
 device-mapper                                  x86_64                             7:1.02.107-5.el7                               base                                251 k
 device-mapper-libs                             x86_64                             7:1.02.107-5.el7                               base                                304 k
 dracut                                         x86_64                             033-360.el7_2                                  updates                             311 k
 kmod                                           x86_64                             20-5.el7                                       base                                114 k
 kmod-libs                                      x86_64                             20-5.el7                                       base                                 47 k
 kpartx                                         x86_64                             0.4.9-85.el7                                   base                                 59 k
 qrencode-libs                                  x86_64                             3.4.1-3.el7                                    base                                 50 k
 systemd                                        x86_64                             219-19.el7                                     base                                5.1 M
 systemd-libs                                   x86_64                             219-19.el7                                     base                                356 k
 sysvinit-tools                                 x86_64                             2.88-14.dsf.el7                                base                                 63 k
Updating for dependencies:
 dbus-libs                                      x86_64                             1:1.6.12-13.el7                                base                                151 k

Transaction Summary
============================================================================================================================================================================
Install  1 Package  (+13 Dependent packages)
Upgrade             (  1 Dependent package)

Total download size: 7.8 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/base/packages/acl-2.2.51-12.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY       ]  0.0 B/s |    0 B  --:--:-- ETA 
Public key for acl-2.2.51-12.el7.x86_64.rpm is not installed
(1/15): acl-2.2.51-12.el7.x86_64.rpm                                                                                                                 |  81 kB  00:00:00     
(2/15): cryptsetup-libs-1.6.7-1.el7.x86_64.rpm                                                                                                       | 182 kB  00:00:00     
(3/15): dbus-libs-1.6.12-13.el7.x86_64.rpm                                                                                                           | 151 kB  00:00:00     
(4/15): dbus-1.6.12-13.el7.x86_64.rpm                                                                                                                | 306 kB  00:00:00     
(5/15): device-mapper-1.02.107-5.el7.x86_64.rpm                                                                                                      | 251 kB  00:00:00     
(6/15): device-mapper-libs-1.02.107-5.el7.x86_64.rpm                                                                                                 | 304 kB  00:00:00     
(7/15): kmod-20-5.el7.x86_64.rpm                                                                                                                     | 114 kB  00:00:00     
(8/15): initscripts-9.49.30-1.el7.x86_64.rpm                                                                                                         | 429 kB  00:00:00     
(9/15): kmod-libs-20-5.el7.x86_64.rpm                                                                                                                |  47 kB  00:00:00     
(10/15): kpartx-0.4.9-85.el7.x86_64.rpm                                                                                                              |  59 kB  00:00:00     
(11/15): qrencode-libs-3.4.1-3.el7.x86_64.rpm                                                                                                        |  50 kB  00:00:00     
Public key for dracut-033-360.el7_2.x86_64.rpm is not installed         28% [=================                                            ] 433 kB/s | 2.2 MB  00:00:13 ETA 
(12/15): dracut-033-360.el7_2.x86_64.rpm                                                                                                             | 311 kB  00:00:00     
(13/15): systemd-libs-219-19.el7.x86_64.rpm                                                                                                          | 356 kB  00:00:00     
(14/15): sysvinit-tools-2.88-14.dsf.el7.x86_64.rpm                                                                                                   |  63 kB  00:00:00     
(15/15): systemd-219-19.el7.x86_64.rpm                                                                                                               | 5.1 MB  00:00:01     
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                       3.3 MB/s | 7.8 MB  00:00:02     
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: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-1.1503.el7.centos.2.8.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test


Transaction check error:
  file /usr/lib64/libsystemd-daemon.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/libsystemd-id128.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/libsystemd-journal.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/libsystemd-login.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/libudev.so.1 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/security/pam_systemd.so from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/emergency.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/initrd.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/rescue.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/dbus-1/system.d/org.freedesktop.login1.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/dbus-1/system.d/org.freedesktop.systemd1.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/pam.d/systemd-user from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/rc.d/rc.local from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/systemd/journald.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/systemd/logind.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/systemd/system.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/xdg/systemd/user from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/systemd/user.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /etc/udev/udev.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/tmpfiles.d/systemd.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/journalctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/bash-completion/completions/journalctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/kernel-install from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/localectl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/bash-completion/completions/localectl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/loginctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/bash-completion/completions/loginctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/bash-completion/completions/systemctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/bash-completion/completions/systemd-analyze from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-ask-password from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-cat from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-coredumpctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-detect-virt from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-inhibit from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-machine-id-setup from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-notify from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-run from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/bash-completion/completions/systemd-run from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-tmpfiles from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/systemd-tty-ask-password-agent from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/bin/udevadm from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/bash-completion/completions/udevadm from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/kernel/install.d/90-loaderentry.install from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/rpm/macros.d/macros.systemd from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/sysctl.d/50-default.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/catalog/systemd.catalog from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system-generators/systemd-rc-local-generator from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/basic.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/bluetooth.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/console-shell.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/debug-shell.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/default.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/dev-hugepages.mount from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/getty@.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/graphical.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/initrd-cleanup.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/initrd-fs.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/initrd-parse-etc.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/initrd-root-fs.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/initrd-switch-root.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/local-fs.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/multi-user.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-logind.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-user-sessions.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/network.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/paths.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/poweroff.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/printer.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/rc-local.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/reboot.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/serial-getty@.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/shutdown.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/smartcard.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/sockets.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-initctl.socket from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-udevd-kernel.socket from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/sound.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/sys-kernel-config.mount from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/sys-kernel-debug.mount from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/sysinit.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-journal-flush.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-journald.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-sysctl.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-tmpfiles-setup-dev.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-tmpfiles-setup.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-udev-trigger.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-udevd.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-update-utmp.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-fsck-root.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-fsck@.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-localed.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-nspawn@.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/systemd-tmpfiles-clean.service from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/time-sync.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/timers.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/user/timers.target from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/system/tmp.mount from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-ac-power from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-activate from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-binfmt from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-cgroups-agent from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-coredump from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-fsck from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-initctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-journald from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-localed from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-logind from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-random-seed from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-remount-fs from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-reply-password from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-shutdown from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-shutdownd from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-sleep from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-sysctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-udevd from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-update-utmp from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-user-sessions from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/systemd/systemd-vconsole-setup from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/tmpfiles.d/legacy.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/tmpfiles.d/tmp.conf from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/accelerometer from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/ata_id from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/cdrom_id from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/collect from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/mtd_probe from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/40-redhat.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/42-usb-hid-pm.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/50-udev-default.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/60-cdrom_id.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/60-keyboard.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/60-persistent-storage.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/70-power-switch.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/70-uaccess.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/90-vconsole.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/rules.d/99-systemd.rules from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/scsi_id from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/lib/udev/v4l_id from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/pkgconfig/udev.pc from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/polkit-1/actions/org.freedesktop.locale1.policy from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/polkit-1/actions/org.freedesktop.login1.policy from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/polkit-1/actions/org.freedesktop.systemd1.policy from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/systemd/kbd-model-map from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_journalctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_kernel-install from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_localectl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_loginctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_systemctl from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_systemd-analyze from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_systemd-nspawn from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_systemd-run from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_systemd-tmpfiles from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64
  file /usr/share/zsh/site-functions/_udevadm from install of systemd-219-19.el7.x86_64 conflicts with file from package systemd-container-208.20-6.el7.centos.x86_64

Error Summary
-------------

[root@938743e43bda /]# 
@jperrin
Copy link
Collaborator

jperrin commented Dec 15, 2015

You should be doing a yum update first.
This allows you t pull in the updated systemd packages which otherwise generate the file conflict you're seeing.

in short -> yum -y update && yum -y install initscripts

@edwintorok
Copy link
Author

Thanks, that works. The https://docs.docker.com/engine/articles/dockerfile_best-practices/ says not to run apt-get upgrade/dist-upgrade so I assumed not running yum update is a similar best practice.
Could the best practice document be updated too to say what should be done for rpm-based images?

@jperrin
Copy link
Collaborator

jperrin commented Dec 15, 2015

Their reasoning for NOT running updates is questionable at best, and makes you more reliant on docker.

@edwintorok
Copy link
Author

Hmm in another container I got this error with a yum -y update && yum -y install:

Transaction check error:
  file /usr/lib64/libsystemd-daemon.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/libsystemd-id128.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/libsystemd-journal.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/libsystemd-login.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/libudev.so.1 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
  file /usr/lib64/security/pam_systemd.so from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64

For now I've used mkimage-yum.sh to create a CentOS 7.2 image locally.

@edwintorok
Copy link
Author

Ok so this is interesting.
This fails: docker run -it centos:centos7 yum -y update.
And this works: docker run -it centos:7 yum -y update.
After docker pull centos:centos7 the other one works too, so looks like I have to do both: pull latest docker image for all tags, and run yum update.

@jperrin
Copy link
Collaborator

jperrin commented Dec 15, 2015

I've got the 7.2 images ready to submit to the docker registry. They should hopefully be available tomorrow. I'd say Thursday at the latest.

@jperrin
Copy link
Collaborator

jperrin commented Dec 15, 2015

I underestimated their speed. 7.2 is now in the registry. I'm going to close this bug, as doing a fresh pull will give you the new image.

@jperrin jperrin closed this as completed Dec 15, 2015
@edwintorok
Copy link
Author

Excellent, thanks for the quick turnaround time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants