Docker build succeed even If yum install dependencies fails

Hello,
I noticed that even If the installation of a package (dependencies) fails during a docker build process, the docker build succeed withtout error.
Is there a way to check that If a RUN command where "yum install " fails to install all dependencies, then the docker build should stop and exit?
Thanks!

So, I found a way If anyone else is wondering how to do it:
In my dockerfile I added this line

RUN echo "skip_missing_names_on_install=0" >> /etc/yum.conf

Basically by default the option

skip_missing_names_on_install

is enabled thats why the build does not fails
even If some packages are not installed.

1 Like