#release-engineering (2019-03)
All things CI/CD. Specific emphasis on Codefresh and CodeBuild with CodePipeline.
CI/CD Discussions
Archive: https://archive.sweetops.com/release-engineering/
2019-03-27
@Erik Osterman (Cloud Posse) I’ve got Codefresh pushing to ECR (and apparently codefreshe’s own registry too). How does one go about now pulling that ECR image?
Have tried:
aws-vault exec acme-mgmt-iac aws ecr get-login
aws-vault exec acme-mgmt-iac docker pull [xxxx.dkr.ecr.eu-west-2.amazonaws.com/acme/foo:develop](http://xxxx.dkr.ecr.eu-west-2.amazonaws.com/acme/foo:develop)
But both have their errors
I can see a quick workaround actually by having a default credentials so I can avoid aws-vault
Well that workaround worked. But would be to find out the answer.
Likewise how to avoid:
REPOSITORY TAG IMAGE ID CREATED SIZE
xxx.dkr.ecr.eu-west-2.amazonaws.com/acme/pod develop xxx 41 minutes ago 498MB
so I can just run docker run acme/pod:develop
instead of docker run [xxx.dkr.ecr.eu-west-2.amazonaws.com/acme/pod:develop](http://xxx.dkr.ecr.eu-west-2.amazonaws.com/acme/pod:develop)
The following steps help you install the AWS Command Line Interface and then log in to Amazon ECR. From there, you can create an image repository, push an image to that repository, and perform other common scenarios in Amazon ECR.
docker needs a registry to pull an image (DockerHub by default), so docker run acme/pod:develop
will not work with ECR
…unless you hack your DNS to make hub.docker.com (or whatever domain it connects to when pulling) return your ECR endpoint instead
Ooo Tim I kind of fancy doing that but I just know I’ll need the standard hub.docker.com at some point ;)
Going to use variant instead