Hi,
Platform: Kubernetes
I have kubernetes pipeline whith plugin/ecr, the FROM is aws ecr which able to fetch the images
when using dind service + docker build command it fails to pull image from ECR where on plugin/ecr its successfully do it automatically, what should I do?
steps:
- name: publish-to-ecr-branch-name-branch-build
image: 995121555896.dkr.ecr.us-west-1.amazonaws.com/cloudlock/base-python3-hardened:latest
commands:- env
- apk --update add docker
- docker build --no-cache -t 995121555896.dkr.ecr.us-west-1.amazonaws.com/cloudlock/sit-svc-data-collector:build --build-arg SHADOW_CONF=/shadow_collector/config/vpc_config.json --build-arg PIP_EXTRA_INDEX_URL=$${PIP_EXTRA_INDEX_URL} .
environment:
PIP_EXTRA_INDEX_URL:
from_secret: pip_extra_index_url
volumes: - name: dockersock
path: /var/run
services:
- name: docker
image: docker:18.09.9-dind
volumes:- name: dockersock
path: /var/run
volumes:
- name: dockersock
- name: dockersock
temp: {}