its failing with this error in this step : RUN yum -y install genisoimage-1.1.11-25.el7.x86_64.rpm I have tried to modify this line with the following options like:
RUN yum -y install genisoimage/RUN yum -y install mkisofs but nothing is working and its giving me this same error also I tried to modify the CMD line with tis option like CMD [“/bin/bash”] but nothing is working can anyone please help me on this ?
Looks like you are trying to install genisoimage using yum without the rpm package in the container. You can try to use a different approach to achieve this.
It looks like you’re trying to create a custom Docker image based on CentOS 7 using an ISO file and installing genisoimage inside the image. The error you’re encountering is likely due to the fact that the RPM package genisoimage-1.1.11-25.el7.x86_64.rpm is not available in the default CentOS repositories.
To resolve this issue, you can try the following steps:
Update the package lists and install genisoimage from the official repositories:
If you still need to use the RPM file directly, you need to make sure it’s available in the build context (the directory from which you’re running docker build) and then copy it to the appropriate location in the image before running the yum install command:
Once you make the necessary changes, try running the docker build command again. If you encounter any further issues, please share the exact error message you’re getting, and we’ll be happy to assist you further. Happy Dockerizing!