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

Unable to install docker when using the latest centos7 image due to systemd file conflicts #38

Closed
sidharta-s opened this issue Dec 16, 2015 · 8 comments

Comments

@sidharta-s
Copy link

The issue can be reproduced using the simple Dockerfile shown below.

q (07:09:57) ~/test$ cat Dockerfile.test
FROM docker.io/centos:centos7
RUN yum install -y docker
CMD ["/bin/bash"]
q (07:10:03) ~/test$ docker build -f Dockerfile.test .

This results in errors like these :

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

In case it matters, I am running docker engine 1.9.0 on CentOS 7.1 .

@jperrin
Copy link
Collaborator

jperrin commented Dec 16, 2015

Correct. This is caused by the removal of systemd-container from 7.2. Do a new docker pull centos:7 to resolve it.

@jperrin jperrin closed this as completed Dec 16, 2015
@sidharta-s
Copy link
Author

I'll try this out, thanks!

@buley
Copy link

buley commented Dec 17, 2015

Is there a webhook anywhere we can use to update our Centos base images when a build is shipped?

@jperrin
Copy link
Collaborator

jperrin commented Dec 17, 2015

I know there have been several attempts at submitting a feature like this to docker, but I don't think any of them have been merged in yet. I would check with docker folks to see.

@buley
Copy link

buley commented Dec 17, 2015

Thanks @jperrin. I'll investigate. I use a CentOS base image to which add my user needs, etc. Anything that ran yum update in the Dockerfile broke following this change, since my base image wasn't updated but those containers using it were updating their packages.

@sidharta-s
Copy link
Author

It looks like using an older image 7.1 image causes issues when installing docker. This fails :

q (19:58:30) ~/test$ cat Dockerfile.test
FROM docker.io/centos:centos7.1.1503
RUN yum install -y docker-1.8.2
CMD ["/bin/bash"]
q (19:58:32) ~/test$ docker build -f Dockerfile.test .

@jperrin
Copy link
Collaborator

jperrin commented Dec 19, 2015

point-in-time releases will require added attention, yes. This is because the 7.1.1503 container is trying to pull from current repositories. You'll have to apply updates and work around systemd-container vs systemd dep issues.

@jay-johnson
Copy link

Had to update my base image like @buley. Thanks for the fix @jperrin

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

4 participants