From b37c6dbffb641bb7943181e34a2f53b68951a13d Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Sat, 15 Jun 2024 19:23:03 -0700 Subject: [PATCH] Added step to disable Subscription Manager for YUM during RHEL Docker build --- Dockerfile.rhel | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile.rhel b/Dockerfile.rhel index bfde98e..435334c 100644 --- a/Dockerfile.rhel +++ b/Dockerfile.rhel @@ -40,6 +40,9 @@ WORKDIR /tmp # Switch to Root User USER root +# Disable Subscription Manager YUM Plugin +RUN sed -i s/enabled=./enabled=0/g /etc/yum/pluginconf.d/subscription-manager.conf + # Install OpenSSH and set the password for root to "Docker!" RUN yum update -y RUN yum install -qq openssh-server -y \