Code Monkey home page Code Monkey logo

Comments (10)

jperrin avatar jperrin commented on June 7, 2024 2

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.

tleyden avatar tleyden commented on June 7, 2024

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.

tleyden avatar tleyden commented on June 7, 2024

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.

yosifkit avatar yosifkit commented on June 7, 2024

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.

tleyden avatar tleyden commented on June 7, 2024

@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.

tleyden avatar tleyden commented on June 7, 2024

@jperrin awesome, thank you. I'm closing the ticket since that will solve my problem on centos7.

from official-images.

tleyden avatar tleyden commented on June 7, 2024

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.

jperrin avatar jperrin commented on June 7, 2024

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.

tleyden avatar tleyden commented on June 7, 2024

@jperrin thanks, I will make sure to install initscripts w/ centos6.7.

from official-images.

Tazovsky avatar Tazovsky commented on June 7, 2024

yum install initscripts solved the issue,

from official-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.