su and sudo fail in container if the /etc/security/limits.conf file contains any limits defined like this:
* soft nofile 16000 * hard nofile 64000