This is what I’m trying to do. I have a docker image that is in a private ECR repo. This docker image is built off a base docker image that is also in a private ECR repo. I have been able to build this docker image off the base image locally, but when executing the build of this docker image in the pipeline, I am getting the following error:
+ docker build -t $DOCKER_IMAGE . Sending build context to Docker daemon 2.793MB Step 1/8 : FROM base/docker-image:latest pull access denied for base/docker-image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Since both of the docker images I have are stored in separate, private ECR repos I’m not sure if I need to integrate a secret within my EKS cluster in order for this pipeline to be able to pull from the base docker image repo. I have integrated a secret with the docker image that allows that to be pulled. Any advice would be helpful.
Source: Docker Questions