Build Secrets

Build Secrets

Image builds often require secrets

Secrets must not be added:

FROM alpine
ADD id_rsa /root/.ssh/
RUN scp user@somewhere:/tmp/data .
RUN rm /root/.ssh/id_rsa

Credential disclosure:

Solution: Build Secrets in Docker 18.09