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

Official CentOS base image #290

Closed
shykes opened this issue Apr 1, 2013 · 22 comments
Closed

Official CentOS base image #290

shykes opened this issue Apr 1, 2013 · 22 comments
Milestone

Comments

@shykes
Copy link
Contributor

shykes commented Apr 1, 2013

In addition to the current Ubuntu base image, it would be nice to provide an official CentOS base image in the registry. Several people are already importing their own bases, and a reference base image would save bandwidth and facilitate sharing and re-use.

@shykes
Copy link
Contributor Author

shykes commented Apr 1, 2013

@unclejack would you like to contribute the recipe for your CentOS base, so we can make it official?

@unclejack
Copy link
Contributor

Yes, it's not a problem. We just need to get it working and then I can write it down as a script.

@shykes
Copy link
Contributor Author

shykes commented Apr 1, 2013

Here's a build script contributed by @unclejack:

#!/bin/bash

MIRROR_URL="http://centos.netnitco.net/6.4/os/x86_64/"
MIRROR_URL_UPDATES="http://centos.netnitco.net/6.4/updates/x86_64/"

yum install -y febootstrap xz

febootstrap -i bash -i coreutils -i tar -i bzip2 -i gzip -i vim-minimal -i wget -i patch -i diffutils -i iproute -i yum centos centos64  $MIRROR_URL -u $MIRROR_URL_UPDATES
touch centos64/etc/resolv.conf
touch centos64/sbin/init

tar --numeric-owner -Jcpf centos-64.tar.xz -C centos64 .

We'll need someone from the registry team to build it and publish it as base:centos-6.4

@shykes
Copy link
Contributor Author

shykes commented Apr 1, 2013

@unclejack should we wait for #194 before uploading?

@ghost ghost assigned mzdaniel Apr 1, 2013
@unclejack
Copy link
Contributor

@shykes #194 is done, I just have to send the pull request.

@mzdaniel
Copy link
Contributor

mzdaniel commented Apr 2, 2013

Thank you so much unclejack. Your little script is awesome!

@unclejack
Copy link
Contributor

@mzdaniel You're welcome.

@shykes
Copy link
Contributor Author

shykes commented Apr 2, 2013

@unclejack let us know when you've played with creack/centos and think it's good to go. We'll promote it to base:centos

@unclejack
Copy link
Contributor

@shykes I'll prepare a set of tests for it so it can be validated.

@unclejack
Copy link
Contributor

@shykes I've used the CentOS image a bit more and I haven't encountered problems.

It could be moved to the official repo.

@shykes
Copy link
Contributor Author

shykes commented Apr 4, 2013

@unclejack just to confirm, you're talking about image id 539c0211cd76cdeaedbecf9f023ef774612e331137ce7ebe4ae1b61088e7edbe ?

@unclejack
Copy link
Contributor

@shykes Yes, that's the image I was talking about.

@unclejack
Copy link
Contributor

This image can now be pulled by running:

docker pull centos

@shykes
Copy link
Contributor Author

shykes commented Apr 4, 2013

👍

Note that we can use tags to expose multiple versions. 'docker run centos' will automatically use the 'latest' tag, but you can also 'docker run centos:6.4'

@shykes
Copy link
Contributor Author

shykes commented Apr 4, 2013

Thanks for the recipe @unclejack !

@shykes shykes closed this as completed Apr 4, 2013
@unclejack
Copy link
Contributor

@shykes You're welcome!

@gasi
Copy link

gasi commented May 31, 2013

Disclaimer: I’m fairly new to Linux.
How do I change the root password on this CentOS image? I tried running

docker run -i -t centos /bin/bash
bash-4.1# passwd
bash: passwd: command not found

But it doesn’t have the passwd command. Is there a default root password set?

@unclejack
Copy link
Contributor

@gasi You have to install the passwd package with yum install passwd. This isn't included in the image as it's not normally required.

@shykes
Copy link
Contributor Author

shykes commented May 31, 2013

Thanks @unclejack!

On Fri, May 31, 2013 at 3:31 PM, unclejack notifications@github.com wrote:

@gasi https://github.com/gasi You have to install the passwd package
with yum install passwd. This isn't included in the image as it's not
normally required.


Reply to this email directly or view it on GitHubhttps://github.com//issues/290#issuecomment-18775156
.

@gasi
Copy link

gasi commented May 31, 2013

@unclejack @shykes Confirmed that works. Thanks 👍

@stylpe stylpe mentioned this issue Jul 19, 2013
@charles-dyfis-net
Copy link

@unclejack, which version of febootstrap is that script designed for? (It uses a number of options not present in modern builds as documented at http://libguestfs.org/febootstrap.8.html)

@unclejack
Copy link
Contributor

@charles-dyfis-net You need to use CentOS 6.x to build the image.

liusdu pushed a commit to liusdu/moby that referenced this issue Oct 30, 2017
It is not allowed to specify a parent cgroup which is "FROZEN".

fix DTS2017051801560
fix moby#290

Signed-off-by: Yuanhong Peng <pengyuanhong@huawei.com>
liusdu pushed a commit to liusdu/moby that referenced this issue Oct 30, 2017
Update docs for `--cgroup-parent` flag

It is not allowed to specify a parent cgroup which is "FROZEN".

fix DTS2017051801560
fix moby#290

Signed-off-by: Yuanhong Peng <pengyuanhong@huawei.com>



See merge request docker/docker!474
rtyler pushed a commit to rtyler/docker that referenced this issue Feb 23, 2018
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

5 participants