Giter Site home page Giter Site logo

Comments (8)

jperrin avatar jperrin commented on August 27, 2024

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

from sig-cloud-instance-images.

edwintorok avatar edwintorok commented on August 27, 2024

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?

from sig-cloud-instance-images.

jperrin avatar jperrin commented on August 27, 2024

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

from sig-cloud-instance-images.

edwintorok avatar edwintorok commented on August 27, 2024

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.

from sig-cloud-instance-images.

edwintorok avatar edwintorok commented on August 27, 2024

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.

from sig-cloud-instance-images.

jperrin avatar jperrin commented on August 27, 2024

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.

from sig-cloud-instance-images.

jperrin avatar jperrin commented on August 27, 2024

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.

from sig-cloud-instance-images.

edwintorok avatar edwintorok commented on August 27, 2024

Excellent, thanks for the quick turnaround time!

from sig-cloud-instance-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.