Comments (8)
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.
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.
Their reasoning for NOT running updates is questionable at best, and makes you more reliant on docker.
from sig-cloud-instance-images.
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.
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.
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.
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.
Excellent, thanks for the quick turnaround time!
from sig-cloud-instance-images.
Related Issues (20)
- download linux centos
- Centos:7 image contains old kernel with security vulnerabilities HOT 2
- Linux Permission Issue
- CentOS-8-Stream docker file needs update
- centos7.8.2003 arm64 build
- When will CentOS 8.4.2105 be available on dockerhub? HOT 2
- will there a new centos 7 image with the security issues fixed? HOT 1
- remove ethtool
- When will CentOS 8.5.2111 be available on quay.io? HOT 4
- all cmake make
- centos 8 repo mirrorlists are deprecated HOT 12
- CentOS 7: vault.centos.org now has HSTS enabled, but default repo config uses `http` HOT 1
- Suggestion: Update the CentOS source IP address to the latest version
- centos 7 image vulnerabilities
- Build CentOS image with ssh enabled. FAILED! HOT 1
- How to upgrade the kernel of centos7 in a container
- `GLIBC_2.29` not found
- [Feature Request] yum install OpenSSL3 HOT 1
- Support for CentOS 9 docker image HOT 1
- I can't update the Centos7 image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sig-cloud-instance-images.