Running RHEL 7 Docker Containers in AWS

Back to Listing

Hanover, MD, 14 July 2018


I recently needed to run some tests on a RHEL 7 system but needed a subscription to do so. The easiest and cheapest method for testing on RHEL is to spin up a small instance in AWS and, for easy and quick repeatability, fire up a docker container in the instance.

The reason that I originally thought to do this is that docker in RHEL is supposed to inherit the subscription aspects of the underlying host. Unfortunately, this simply doesn’t work as expected in AWS.

After a bit of experimentation, I determined the correct combination of artifacts from the base OS that would allow the docker container to function properly.

To make this process repeatable, these were wrapped up in a GitHub project that, for good measure, sets up a reasonable Ruby and Python development environment under a standard user account. This is pretty much what I needed for testing and it is a good and flexible use case for the container.

Hopefully this ends up being helpful to others and, as always, patches are always welcome!

Trevor has worked in a variety of IT fields over the last decade, including systems engineering, operating system automation, security engineering, and various levels of development.

At OP his responsibilities include maintaining overall technical oversight for Onyx Point solutions, providing technical leadership and mentorship to the DevOps teams. He is also responsible for leading OP’s solutions and intellectual property development efforts, setting the technical focus of the company, and managing OP products and related services. In this regard, he oversees product development and delivery as well as developing the strategic roadmap for OP’s product line.

At Onyx Point, our engineers focus on Security, System Administration, Automation, Dataflow, and DevOps consulting for government and commercial clients. We offer professional services for Puppet, RedHat, SIMP, NiFi, GitLab, and the other solutions in place that keep your systems running securely and efficiently. We offer Open Source Software support and Engineering and Consulting services through GSA IT Schedule 70. As Open Source contributors and advocates, we encourage the use of FOSS products in Government as part of an overarching IT Efficiencies plan to reduce ongoing IT expenditures attributed to software licensing. Our support and contributions to Open Source, are just one of our many guiding principles

  • Customer First.
  • Security in All We Do.
  • Pursue Innovation with Integrity.
  • Communicate Openly and Respectfully.
  • Offer Your Talents, and Appreciate the Talents of Others

docker, RHEL, Red Hat Enterprise Linux, AWS, Amazon Web Services, open source

Share this story

We work with these Technologies + Partners

puppet
gitlab
simp
beaker
redhat
`
AFCEA
GitHub
FOSSFeb