Credentials error when using a common docker asset as base image for other docker assets #6466
Labels
@aws-cdk/assets
Related to the @aws-cdk/assets package
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
Using a common docker asset as base image for other docker assets can lead to credentials error when building.
If the common docker asset already exists
docker build
anddocker login
will be skipped. When building the docker asset that uses the common docker asset as base imagedocker build
will fail because it won't be able to pull the base image.The fix is simple: always call
docker login
before callingdocker build
.Reproduction Steps
Consider the following pattern to "reuse" a common docker asset as base image in other docker assets:
Error Log
The error
no basic auth credentials
is returned ondocker build
if the docker asset inStackA
has changed but not the common docker asset.Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: