Check provider logo

Image user should not be 'root'

image_DS-0002

Severityhigh
Servicedocker
by Prowler

Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.

Risk

No content available

Run this check with Prowler CLI

prowler image

Recommendation

Add 'USER <non root user name>' line to the Dockerfile

References