07. 07. 2022
Lorenzo Candeago
DevOps
How to Use a Host’s Redhat Subscription to Run Containers Using Docker instead of Podman
In NetEye 4.23 we shifted our base containers from CentOS to RedHat Enterprise Linux. Within our NetEye image and container we ship packages that come from RedHat Enterprise Linux’s private repositories and are thus subject to subscription, hence we need a way to be able to use our subscription when building NetEye containers.
RedHat allows you to use a host’s subscription for package installation inside containers out of the box when using podman, but not with other Docker versions.
One of the problems we are facing is that our CI infrastructure is still based on Docker Swarm, which is not supported by podman (although we are currently transitioning our CI to OpenShift).
Following a method not officially supported by RedHat, it’s enough to mount the secrets and certificates directory from the host machine onto the container in the correct location:
docker run -it -v /etc/yum.repos.d/redhat.repo:/run/secrets/redhat.repo:ro \
-v /etc/pki/entitlement/:/run/secrets/etc-pki-entitlement:ro \
-v /etc/rhsm/:/run/secrets/rhsm:ro redhat/ubi8 bash
Once inside the container, if we now try to run the subscription-manager we’ll get the same error we would get with podman, meaning that the container is using the host’s subscription.
subscription-manager status
subscription-manager is disabled when running inside a container. Please refer to your host system for subscription management.
These Solutions are Engineered by Humans
Did you find this article interesting? Are you an “under the hood” kind of person? We’re really big on automation and we’re always looking for people in a similar vein to fill roles like this one as well as other roles here at Würth Phoenix.
Latest posts by Lorenzo Candeago
See All
Related Content
Tags: docker, NetEye, redhat
A safer way to run privileged Windows checks with SystemRunner If you’ve been monitoring Windows for a while, you’ve probably seen this pattern: some checks must run as LocalSystem (S-1-5-18), and the “quick fix” is to run the Icinga Agent
Read More
24. 11. 2025
Log-SIEM, NetEye
With the upgrade to NetEye 4.44, we've added a lot of new features (https://www.neteye-blog.com/2025/10/neteye-4-44-release-notes/) and, from my point of view, one of the most relevant is the introduction of Elastic Stack 9. This Elasticsearch major release (https://www.elastic.co/guide/en/elastic-stack/9.0/elastic-stack-release-notes.html) includes some new
Read More
In NetEye, 'business processes' is a module used to model and monitor the business process hierarchy to obtain a high-level view of the status of critical applications. In short, they allow monitoring controls of individual components to be aggregated into
Read More
If you've worked with Elastic APM, you're probably familiar with the APM Server: a component that collects telemetry data from APM Agents deployed across your infrastructure. But what happens when you need to segregate that data by tenant, especially in
Read More
In the first part we created hosts and services to monitor a sequence of script using Tornado. The Tornado Rule Now let's continue with the creation of a Tornado rule: open the NetEye web interface and select Tornado dashboard, then
Read More