-
Notifications
You must be signed in to change notification settings - Fork 465
DL3026
José Lorenzo Rodríguez edited this page Jul 7, 2018
·
1 revision
FROM randomguy/python:3.6
...
FROM my-registry.com/python:3.6
...
Using the FROM
instruction is a huge exercise in trust, you have to trust that a particular version or an image is safe for you to use, and that it will never be retagged maliciously. In order to prevent that, some companies copy trusted images into their own repositories, and reference them directly.
For example, this would be an untrusted image:
FROM randomguy/fancy:10
...
But after an audit, the company decides to copy the image into their own repository, as it was deemed safe:
FROM my-registry.com/fancy:10
...
The idea is that hadolint can warn whenever an untrusted repo is used, you can use the --trusted-registry
flag for that
hadolint --trusted-registry my-registry.com Dockerfile