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
11. 02. 2026
Bug Fixes, NetEye
Fixing Misplaced Plugin Output in Icinga Web Interface When plugin output contained HTML content (like links), it was incorrectly displayed near the service name instead of in the Plugin Output section. The plugin output section now correctly renders all content.
Read More
10. 02. 2026
Bug Fixes, NetEye
Icinga Director Now Responsive During Configuration Deployments Previously, users were unable to interact with Icinga Director while configuration deployments were running. Any attempt to access the interface or API would be blocked until the deployment completed, causing unnecessary delays in
Read More
20. 01. 2026
Bug Fixes, NetEye
Bug Fix We updated the version of GLPI in order to fix some relevant vulnerabilities. List of updated packages The following packages have been updated for NetEye 4.45: glpi, glpi-autosetup, glpi-configurator, glpi-neteye-config to version 10.0.22_neteye1.17.5-1.
17. 01. 2026
Bug Fixes, NetEye
Bug Fix in Tornado Module We solved an issue in Tornado's rule configuration where the action_name field in director actions was being cleared after saving and deploying. When users created a rule with a director action and filled in both
Read More
Today we continue our journey into monitoring automation in NetEye. In my previous post we discussed the possibility of automating Business Processes. As you may remember, for those of us working on NetEye Cloud monitoring dozens of clients, it's important
Read More