Docker and CI/CD · Senior · Question 71 of 75

What do BuildKit's --secret and --ssh have in common?

Explanation

--ssh forwards an SSH agent for cloning private repos; --secret mounts a file. Both vanish after the step, unlike ARG or COPY.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 71

Test yourself

Take the Docker and CI/CD · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz