I try to yum install package into docker container lambci/lambda:python3.6 I get the interactive console with but both su and sudo are not installed then I try to install anything with root permission is asked How to solve this evil circle ? Answer At least, you can try and run the image as root: That way, in your bash root