Closed ghost closed 7 months ago
This is similar to https://github.com/docker/build-push-action/issues/807
When using the setup-buildx-action
, it will create a docker-container
builder as explained in the README: https://github.com/docker/setup-buildx-action#about
Build Dockerfile.base
step will build and load the image to the store but as you're using a container builder, Build Dockerfile.venv
will not have access to the store.
Best is to use a named context so you can use an image in subsequent steps but looking at your workflow I don't think you need a docker-container
builder so you can just remove the Set up Docker Buildx
step and it will use the docker
builder by default which has access to the docker store.
This is similar to #807
When using the
setup-buildx-action
, it will create adocker-container
builder as explained in the README: https://github.com/docker/setup-buildx-action#about
Build Dockerfile.base
step will build and load the image to the store but as you're using a container builder,Build Dockerfile.venv
will not have access to the store.Best is to use a named context so you can use an image in subsequent steps but looking at your workflow I don't think you need a
docker-container
builder so you can just remove theSet up Docker Buildx
step and it will use thedocker
builder by default which has access to the docker store.
Thanks! But if I don't use docker-container
, can I use the cache options? It's something I'm going to implement later.
if I don't use
docker-container
, can I use the cache options? It's something I'm going to implement later.
Cache providers like gha
are not available with the docker
driver atm so yeah you need to use the docker-container
builder in that case.
Contributing guidelines
I've found a bug, and:
Description
I am experiencing an issue where a Docker image, built and available locally within a GitHub Actions workflow, is not being recognized in subsequent steps. The workflow attempts to pull the image from an external registry instead of using the local version.
Expected behaviour
The expected behavior is for docker/build-push-action to utilize the locally built Docker image test/base in the GitHub Actions workflow, rather than attempting to pull it from an external registry. This should allow subsequent steps that depend on this image to execute smoothly within the same job.
Actual behaviour
Currently, despite test/base being successfully built and available locally within the GitHub Actions workflow, the docker/build-push-action is attempting to pull this image from an external registry during the build of Dockerfile.ecr. This results in a failure because the image is not found in the external registry, disrupting the continuity of the CI pipeline.
Repository URL
No response
Workflow run URL
No response
YAML workflow
Workflow logs
BuildKit logs
No response
Additional info
No response