Public | Automated Build

Last pushed: a year ago
Short Description
CentOS7 dumb-init image
Full Description

Starter RHEL-based Image w/ best practices

This image aims to include Red Hat's most critical container best practices.

Building an image on RHEL

The easiest way to get started building your own rhel-based image is to first ensure you're using Red Hat's supported docker package on a registered RHEL7 or Atomic Server.

Be sure you've enabled the following repos after your system is registered:

$ subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms

Install the docker package (after you've removed any public bits you may have been using):

$ yum install docker
$ systemctl enable docker
$ systemctl start docker
$ docker info

If access to a licensed RHEL/Atomic server is not available to you, we offer a no-cost Developer license as well as a Container Development Kit.

Once your host is setup you can begin your Dockerfile with this example. This will ensure you're using the supported/secure base image instead of one you might find on docker's public hub, and many other benefits discussed in the best practices link above.

# build on centos7
$ make

# OR

# build on rhel7
$ make TARGET=rhel7
$ make test
$ make run
Docker Pull Command
Source Repository