Azure container registry error - connect: connection refused

MrFlinstone 541 Reputation points
2023-04-19T21:53:30.05+00:00

I am managing a build pipeline which pushes a docker image onto ACR, it intermittently fails however once it is executed the second time, it works. I am not familiar with the setup, however, I would like to resolve the issue. Below are the logs and the pipeline code. Logs

 Task         : Docker Compose

 Description  : Build, push or run multi-container Docker applications. Task can be used with Docker or Azure Container registry.

 Version      : 0.219.0

 Author       : Microsoft Corporation

 Help         : https://aka.ms/azpipes-docker-compose-tsg

 ==============================================================================

 [command]/usr/bin/docker push appacr.azurecr.io/myacr

 Using default tag: latest

 The push refers to repository [appacr.azurecr.io/myacr]

 199b97e14486: Preparing

 3db0a6cdb505: Preparing

 d2a66a5085e2: Preparing

 ad6ce0711f94: Preparing

 28bfa26b85b0: Preparing

 40d0e1130a75: Preparing

 71914d1074c7: Preparing

 59022b38544c: Preparing

 e7048e056083: Preparing

 a5fc235c1e10: Preparing

 141c03ae5259: Preparing

 213d97ed9764: Preparing

 2ba468180822: Preparing

 93148d48dd44: Preparing

 bc5a91e8433a: Preparing

 219c6c2423f1: Preparing

 3af14c9a24c9: Preparing

 40d0e1130a75: Waiting

 213d97ed9764: Waiting

 2ba468180822: Waiting

 71914d1074c7: Waiting

 59022b38544c: Waiting

 93148d48dd44: Waiting

 e7048e056083: Waiting

 a5fc235c1e10: Waiting

 141c03ae5259: Waiting

 bc5a91e8433a: Waiting

 219c6c2423f1: Waiting

 3af14c9a24c9: Waiting

 199b97e14486: Retrying in 5 seconds

 d2a66a5085e2: Pushed

 ad6ce0711f94: Pushed

 3db0a6cdb505: Pushed

 199b97e14486: Retrying in 4 seconds

 59022b38544c: Pushed

 40d0e1130a75: Pushed

 199b97e14486: Retrying in 3 seconds

 e7048e056083: Pushed

 199b97e14486: Retrying in 2 seconds

 a5fc235c1e10: Pushed

 199b97e14486: Retrying in 1 second

 213d97ed9764: Pushed

 2ba468180822: Layer already exists

 93148d48dd44: Pushed

 bc5a91e8433a: Layer already exists

 199b97e14486: Pushed

 219c6c2423f1: Layer already exists

 3af14c9a24c9: Layer already exists

 71914d1074c7: Pushed

 28bfa26b85b0: Pushed

 141c03ae5259: Pushed

 Post "https://appacr.azurecr.io/v2/myacr/blobs/uploads/": dial tcp xx.xx.xx.xxx:443: connect: connection refused

 ##[error]Post "https://acr.azurecr.io/v2/myacr/blobs/uploads/": dial tcp xx.xx.xx.xxx:443: connect: connection refused

 ##[error]The process '/usr/bin/docker' failed with exit code 1

 ##[section]Finishing: Push services


Pipeline definition

steps:
- task: DockerCompose@0
  displayName: 'Push services'
  inputs:
    azureSubscription: 'Azure subscription 1 (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)'
    azureContainerRegistry: '{"loginServer":"appacr.azurecr.io", "id" : "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/resource_group/providers/Microsoft.ContainerRegistry/registries/appacr"}'
    dockerComposeFile: 'docker-compose.yml'
    projectName: '$(Build.Repository.Name)_build'
    action: 'Push services'
    additionalImageTags: '$(Build.BuildId)'


Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,079 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.