I'm customizing a Dockerfile for an application which is using redhat/ubi8-micro:8.6
as the base image and I want to install nfs-utils
package on top of that.
I enabled all the repos that was available within the image under /etc/yum.repos.d/ubi.repo
.
[ubi-8-baseos-rpms]
[ubi-8-baseos-debug-rpms]
[ubi-8-baseos-source]
[ubi-8-appstream-rpms]
[ubi-8-appstream-debug-rpms]
[ubi-8-appstream-source]
I can install other packages using microdnf
package manger which is available within the image, but the nfs-utils
package is not available.
I tried below ways to install it.
- A multi-stage docker build to install
nfs-utils
package and tried copying over all the files but it didn't work, As some dependencies and libraries were missing - Downloaded the
nfs-utils-1.3.0-0.68.el7.x86_64.rpm
rpm package directly from internet and tried installing withrpm -ivh nfs-utils-1.3.0-0.68.el7.x86_64.rpm
but it fails to install as it expects other dependencies to installed before installing it.
Is there a simple way to install the nfs-utils
package inside redhat/ubi8-micro:8.6
docker image?