Aside: If you want to take advantage of yum clean cleaning up and removing packages in a container then you need to run it in the same RUN command as the installation step. Each RUN command generates a new zipfile layer to the container image so if you clean after the RUN command that installed things you only cleaned the layer above, and things are still in the final image just sitting around as extra storage bloat.
From Matthew F!!