Docker images built using `docker buildx build` fail to pull through VNet
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
Images built and pushed to the Container Registry using `docker buildx build --push` in GitHub Actions will fail to pull from the Functions App with the `Pull image over VNet` setting enabled.
Images built with `docker build` and pushed with `docker push` can be pulled via VNet without any problems.
The following error is logged in the Deployment Center log.
```
2024-12-01T16:11:18.466Z INFO - Attempting to pull image crdijpw20241201.azurecr.io/crdijpw20241201/demo:20241201155149-buildx from VNET.
2024-12-01T16:11:19.310Z ERROR - Image pull for crdijpw20241201.azurecr.io/crdijpw20241201/demo:20241201155149-buildx failed. UnexpectedFaliure
2024-12-01T16:11:19.317Z ERROR - Pulling docker image crdijpw20241201.azurecr.io/crdijpw20241201/demo:20241201155149-buildx over VNET failed.
2024-12-01T16:11:19.322Z WARN - Image pull failed. Defaulting to local copy if present.
2024-12-01T16:11:19.328Z ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)
```
The project used for verification is a simple one based on the one generated by `func init --docker`, modified to show the date and time the image was built.
The verification project and deployment workflow are available in [this repository](https://github.com/monry/deploy-issue-20241201).
Of the workflows included in this repository, pulls via VNet succeed only when deployed by running [build-with-plain-commands.yml](https://github.com/monry/deploy-issue-20241201/blob/main/.github/workflows/build-with-plain-commands.yml); [build-with-buildx.yml](https://github.com/monry/deploy-issue-20241201/blob/main/.github/workflows/build-with-buildx.yml) and [build-with-marketplace-actions.yml](https://github.com/monry/deploy-issue-20241201/blob/main/.github/workflows/build-with-marketplace-actions.yml) fail.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.