question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[assets] set up docker login when docker base image is in ecr

See original GitHub issue

When the base image in the Dockerfile is an image from a private ECR repository, run the docker login command as part of asset creation during synthesis.

The command looks something like

aws ecr get-login-password | docker login --username AWS --password-stdin <ecr repo url>

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
david-fractiunatecommented, Jun 18, 2021

+1 Push, we need this… CDK Docker Assets are not usable without it for our team.

1reaction
eladbcommented, Nov 25, 2020

#10999 is open as far as I can tell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

aws-cdk/aws-ecr-assets module - AWS Documentation
DOCKER is the default and you don't need to configure it on the asset itself. Use asset.imageUri to reference the image. It includes...
Read more >
How do I make my Dockerfile use base images from ECR ...
The problem lies here: FROM node:14.19.0-alpine3.14 AS builder. You haven't specified a registry in this FROM statement.
Read more >
docker login - Docker Documentation
Provide a password using STDIN ... To run the docker login command non-interactively, you can set the --password-stdin flag to provide...
Read more >
How to Build and Push Docker Images to AWS ECR
How to Configure the Dockerfile · FROM : Sets the base image for further instructions. · WORKDIR : Adds source code from our...
Read more >
Working with Docker Registries · Codefresh | Docs
How to push, pull and tag Docker images in Codefresh pipelines. ... don't want this behavior you can simply add the disable_push property...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found