Skip to content

Instantly share code, notes, and snippets.

@kbuley
kbuley / CentOS-Docker
Last active Oct 1, 2019 — forked from silveraid/CentOS-Docker
Creating minimal CentOS docker image from scratch
View CentOS-Docker
# Create a folder for our new root structure
$ export centos_root='/centos_image/rootfs'
$ mkdir -p $centos_root
# initialize rpm database
$ rpm --root $centos_root --initdb
# download and install the centos-release package, it contains our repository sources
$ yum reinstall --downloadonly --downloaddir . centos-release
$ rpm --nodeps --root $centos_root -ivh centos-release*.rpm
$ rpm --root $centos_root --import $centos_root/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
# install yum without docs and install only the english language files during the process
View keybase.md

Keybase proof

I hereby claim:

  • I am kbuley on github.
  • I am theklb (https://keybase.io/theklb) on keybase.
  • I have a public key whose fingerprint is 4E05 D6A5 4941 1424 73F6 4C63 3BC1 9A4A 2C5C 6B1F

To claim this, I am signing this object: