Skip to content

Commit

Permalink
Added step to disable Subscription Manager for YUM during RHEL Docker…
Browse files Browse the repository at this point in the history
… build
  • Loading branch information
DCMattyG committed Jun 16, 2024
1 parent 2a976e8 commit b37c6db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.rhel
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit b37c6db

Please sign in to comment.