The cracklib-runtime package needs to be present in the container or container image.
cracklib-runtime
The cracklib-runtime package supplies the password dictionary tools used by PAM password-quality controls.