The command '/bin/sh -c yum install –y libcrypto' returned a non-zero code: 1

Docker build fails when reaches to " RUN yum install –y libcrypto" with the above error. Already tried executing the command manually in the container and succeeds. Any clue can be helpful

THX

could you provide your dockerfile? in many cases just an yum update is missing. Also should update and install within one RUN command, if you rely on caching, which is default.