Comments (10)
This file is provided by the initscripts package, which isn't included by default in the centos-7 image. It is however in the centos6 image.
In el6, it's brought in as a dependency for iproute and iputils, where in el7, systemd (or in our case fakesystemd) meet this need.
Long story short, in your Dockerfile for centos7, you should add initscripts to the list of packages you install.
from official-images.
I spoke to Nick_ZWG on IRC, and he mentioned he ran into the exact same problem and downgraded to CentOS6 to work around it.
from official-images.
This worked:
$ sudo docker run -ti centos:centos6 /bin/bash
$ yum install -y wget pkgconfig openssl tar hostname
$ rpm --install http://packages.couchbase.com/releases/3.0.1/couchbase-server-community-3.0.1-centos6.x86_64.rpm
from official-images.
Maybe @jperrin would know what is wrong with centos7, if anything? Perhaps make an issue on the repo or file a ticket?
from official-images.
@yosifkit what made me think something was wrong with the centos7 image was the fact that if you install it from the CentOS-7.0-1406-x86_64-DVD.iso, it contained the /etc/init.d/functions
file.
from official-images.
@jperrin awesome, thank you. I'm closing the ticket since that will solve my problem on centos7.
from official-images.
Note: centos6.7 has this same issue of missing /etc/init.d/functions
, and running yum install -y wget pkgconfig openssl tar hostname
did not work around it.
from official-images.
This still isn't a problem, and still requires that you install the initscripts package. The centos base containers are designed to be small and thus cannot have all possible packages included.
from official-images.
@jperrin thanks, I will make sure to install initscripts
w/ centos6.7.
from official-images.
yum install initscripts
solved the issue,
from official-images.
Related Issues (20)
- monica:latest not rebuilt? HOT 3
- postgres:16 ls: cannot access '/docker-entrypoint-initdb.d/': Operation not permitted
- Missing Elastic Stack images for 8.10.3 8.10.4 and 7.17.14 HOT 4
- Elasticsearch arm images missing for 8.11.1 and 7.17.15 HOT 9
- Missing ARM64 image for eclipse-temurin alpine image with jdk11 HOT 1
- ARM32 image missing for eclipse-temurin:21-jre-jammy HOT 2
- Nnnn HOT 1
- Status of migration from Jenkins to GitHub Actions HOT 5
- Have official images be supported for podman HOT 2
- Reproducible builds HOT 18
- Have official images be supported for podman HOT 1
- New Official JDK and JRE Images using Alpine 3.19 HOT 1
- Base image rebuild questions HOT 6
- No updates of mariadb images on Docker Hub Repository HOT 8
- golang:1.22-alpine3.19 amd64 HOT 6
- Republish eclipse-temurin (ubuntu focal) images to incorporate openssl vulnerabilities fixes HOT 8
- Official Image hub does not have latest tags HOT 1
- Apache Solr ARM support is missing for 9.5.0 and 9.5 HOT 1
- High severity vulnerability in `libexpat` packages pulled into Alpine HOT 17
- More RISC-V builds - how can I help? HOT 5
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 official-images.