Short answer is mileage may vary. See question #21 here:

Best Regards
Scott M

On Tue, Nov 5, 2019 at 9:47 AM Josh Boyer <> wrote:
On Tue, Nov 5, 2019 at 9:39 AM Daniel Walsh <> wrote:
> On 11/5/19 9:24 AM, wrote:
> > Just a quick question..
> > Is there a best practice for getting epel in to a ubi8 container?
> >
> > I'm trying to do this with yum -y install and the epel url. Do I need to enable anything else?

That works.  There's not really a better way.  You need to get the
repo file included somehow, and either that or doing it via copying a
local repo file in an image build works fine.

If you want to then use that as a base image for other container
builds that need content from EPEL, you can build that image and use
it in the FROM line for any subsequent containers.


Scott McCarty, RHCA
Product Management - Containers, Red Hat Enterprise Linux & OpenShift
Phone: 312-660-3535
Cell: 330-807-1043
Have you ever wondered what happens behind the scenes when you type into a browser and hit enter?