The Ops Community ⚙️

Discussion on: Top 5 Docker Best Practices

Collapse
 
acim profile image
Boban Acimovic

Regarding #1, most of the images already have user nobody or something like that so it is enough to do:

USER 65534:65534

just before the ENTRYPOINT and/or CMD. Checkout /etc/passwd in the image for the UID and GID of an appropriate user account present in the image.