Score:0

Installing find command in a docker container running RHEL 8

cn flag

I am running a docker container of image:

confluentinc/confluent-local:7.4.1

It is based on Redhat 8.8

How do I install find command in the container?

I tried running:

$ yum update

and got this error:

Red Hat Universal Base Image 8 (RPMs) - BaseOS                                                                                                                                                                                       
0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'ubi-8-baseos-rpms':
- Curl error (60): Peer certificate cannot be authenticated with given CA certificates 
for https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/aarch64/baseos/os/repodata/repomd.xml [SSL certificate problem: 
unable to get local issuer certificate]
Error: Failed to download metadata for repo 'ubi-8-baseos-rpms': Cannot download 
repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Is there a way to get the correct rpm/package for find, download it using curl and install it using yum? We do not have RHEL subscription.

Score:1
sa flag
  1. you cannot install anything using under privilege user
alexus@mba ~ % docker run -it confluentinc/confluent-local:7.4.1 id
uid=1000(appuser) gid=1000(appuser) groups=1000(appuser)
alexus@mba ~ %
  1. rhel8 ships w/ dnf (no longer yum)
  2. you can't pull packages w/out subscription, period.
cn flag
Any workarounds? Can I download packages from CentOS repo using curl/wget and install them manually?
alexus avatar
sa flag
not sure which "workarounds" you' referring too, but: 1. you can re-build image and include whichever package you'd like to install 2. you can't steal subscription based packages from redhat, at very least it's not ethical and illegal
cn flag
I don't have easy access to the Dockerfile. So, unable to build image. I was hoping to get access to a free CentOS repo which has the packages needed to run the find command. So, I could download them using curl.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.