I have build a Docker image and uploaded to internal registry. On Jenkins I pull the image and run the container with root user ( -u root). I also
root
-u root