Pull docker images from a private repository during docker build?

I was facing the same issue in 2019. I solved this using arguments (ARG). https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact Arguments allow you to set optional parameters (with defaults) that can be used in your FROM line. Dockerfile-project-dev ARG REPO_LOCATION=privaterepo.company.net/ ARG BASE_VERSION=latest FROM ${REPO_LOCATION}project/base:${BASE_VERSION} … For my use-case I normally want to pull from the private repo, but if I’m … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)