You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker@v2 push fails to push image to ghcr.io. Login to ghcr works with the same service connection. The same pipeline works without problems with a service connection to Docker Hub. The PAT used in the ghcr service connection works when pushing from a command line. Tried pushing to repo-less package, package connected to a repo, and multiple organizations including one where I am admin. PAT has write:packages access rights.
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Relevant log output
2024-11-06T07:18:53.0808892Z ##[section]Starting: Push an image
2024-11-06T07:18:53.0925163Z ==============================================================================
2024-11-06T07:18:53.0925377Z Task : Docker
2024-11-06T07:18:53.0925500Z Description : Build or push Docker images, login or logout, start or stop containers, or run a Docker command
2024-11-06T07:18:53.0925696Z Version : 2.247.1
2024-11-06T07:18:53.0925823Z Author : Microsoft Corporation
2024-11-06T07:18:53.0925953Z Help : https://aka.ms/azpipes-docker-tsg
2024-11-06T07:18:53.0926081Z ==============================================================================
2024-11-06T07:18:53.5893993Z [command]/usr/bin/docker images
2024-11-06T07:18:53.5899885Z [command]/usr/bin/docker push ghcr.io/my-github-org/my-repo:test1-3537
2024-11-06T07:18:53.5900257Z REPOSITORY TAG IMAGE ID CREATED SIZE
2024-11-06T07:18:53.5900743Z ghcr.io/my-github-org/my-repo test1-3537 31640713a079 2 seconds ago 301MB
2024-11-06T07:18:53.5901271Z mcr.microsoft.com/dotnet/aspnet 6.0 c2be2e531fc8 2 weeks ago 209MB
2024-11-06T07:18:53.5901616Z ubuntu 20.04 6013ae1a63c2 3 weeks ago 72.8MB
2024-11-06T07:18:53.5902063Z node 20-alpine 63ac15de6a47 4 weeks ago 133MB
2024-11-06T07:18:53.5902385Z node 20 ef970e331526 4 weeks ago 1.1GB
2024-11-06T07:18:53.5902707Z debian 11 fd320476a1f2 5 weeks ago 124MB
2024-11-06T07:18:53.5903019Z ubuntu 22.04 97271d29cb79 7 weeks ago 77.9MB
2024-11-06T07:18:53.5903339Z moby/buildkit latest 2a89c2764aad 8 weeks ago 202MB
2024-11-06T07:18:53.5903667Z alpine 3.17 2fb3b1200892 2 months ago 7.08MB
2024-11-06T07:18:53.5903998Z alpine 3.18 2c64cf60f6f0 2 months ago 7.35MB
2024-11-06T07:18:53.5904315Z alpine 3.19 a57d33a5c507 2 months ago 7.39MB
2024-11-06T07:18:53.5904756Z node 18-alpine f48cc5826852 4 months ago 128MB
2024-11-06T07:18:53.5905072Z node 18 2e348d98bd63 4 months ago 1.09GB
2024-11-06T07:18:53.5905383Z debian 10 69530eaa9e7e 4 months ago 115MB
2024-11-06T07:18:53.5905720Z alpine 3.16 d49a5025be10 9 months ago 5.54MB
2024-11-06T07:18:53.5906109Z node 16 1ddc7e4055fd 14 months ago 909MB
2024-11-06T07:18:53.5906556Z node 16-alpine 2573171e0124 15 months ago 118MB
2024-11-06T07:18:53.5906687Z
2024-11-06T07:18:53.5923641Z The push refers to repository [ghcr.io/my-github-org/my-repo]
2024-11-06T07:18:53.6754212Z ead24dff829c: Preparing
2024-11-06T07:18:53.6754669Z 5f70bf18a086: Preparing
2024-11-06T07:18:53.6754950Z bff24fa5ba6d: Preparing
2024-11-06T07:18:53.6755208Z 734661639d51: Preparing
2024-11-06T07:18:53.6755464Z 008aac071916: Preparing
2024-11-06T07:18:53.6755784Z 261abc8281b7: Preparing
2024-11-06T07:18:53.6756033Z 7794e8d8212d: Preparing
2024-11-06T07:18:53.6756282Z ceffe60ed721: Preparing
2024-11-06T07:18:53.6756529Z 261abc8281b7: Waiting
2024-11-06T07:18:53.6756777Z 7794e8d8212d: Waiting
2024-11-06T07:18:53.6757020Z ceffe60ed721: Waiting
2024-11-06T07:18:53.8064164Z denied: denied
2024-11-06T07:18:53.8071559Z
2024-11-06T07:18:53.8100848Z ##[error]denied: denied
2024-11-06T07:18:53.8205302Z ##[error]The process '/usr/bin/docker' failed with exit code 1
2024-11-06T07:18:53.8277688Z ##[section]Finishing: Push an image
New issue checklist
Task name
Docker
Task version
v2
Issue Description
Docker@v2 push fails to push image to ghcr.io. Login to ghcr works with the same service connection. The same pipeline works without problems with a service connection to Docker Hub. The PAT used in the ghcr service connection works when pushing from a command line. Tried pushing to repo-less package, package connected to a repo, and multiple organizations including one where I am admin. PAT has write:packages access rights.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Relevant log output
2024-11-06T07:18:53.0808892Z ##[section]Starting: Push an image
2024-11-06T07:18:53.0925163Z ==============================================================================
2024-11-06T07:18:53.0925377Z Task : Docker
2024-11-06T07:18:53.0925500Z Description : Build or push Docker images, login or logout, start or stop containers, or run a Docker command
2024-11-06T07:18:53.0925696Z Version : 2.247.1
2024-11-06T07:18:53.0925823Z Author : Microsoft Corporation
2024-11-06T07:18:53.0925953Z Help : https://aka.ms/azpipes-docker-tsg
2024-11-06T07:18:53.0926081Z ==============================================================================
2024-11-06T07:18:53.5893993Z [command]/usr/bin/docker images
2024-11-06T07:18:53.5899885Z [command]/usr/bin/docker push ghcr.io/my-github-org/my-repo:test1-3537
2024-11-06T07:18:53.5900257Z REPOSITORY TAG IMAGE ID CREATED SIZE
2024-11-06T07:18:53.5900743Z ghcr.io/my-github-org/my-repo test1-3537 31640713a079 2 seconds ago 301MB
2024-11-06T07:18:53.5901271Z mcr.microsoft.com/dotnet/aspnet 6.0 c2be2e531fc8 2 weeks ago 209MB
2024-11-06T07:18:53.5901616Z ubuntu 20.04 6013ae1a63c2 3 weeks ago 72.8MB
2024-11-06T07:18:53.5902063Z node 20-alpine 63ac15de6a47 4 weeks ago 133MB
2024-11-06T07:18:53.5902385Z node 20 ef970e331526 4 weeks ago 1.1GB
2024-11-06T07:18:53.5902707Z debian 11 fd320476a1f2 5 weeks ago 124MB
2024-11-06T07:18:53.5903019Z ubuntu 22.04 97271d29cb79 7 weeks ago 77.9MB
2024-11-06T07:18:53.5903339Z moby/buildkit latest 2a89c2764aad 8 weeks ago 202MB
2024-11-06T07:18:53.5903667Z alpine 3.17 2fb3b1200892 2 months ago 7.08MB
2024-11-06T07:18:53.5903998Z alpine 3.18 2c64cf60f6f0 2 months ago 7.35MB
2024-11-06T07:18:53.5904315Z alpine 3.19 a57d33a5c507 2 months ago 7.39MB
2024-11-06T07:18:53.5904756Z node 18-alpine f48cc5826852 4 months ago 128MB
2024-11-06T07:18:53.5905072Z node 18 2e348d98bd63 4 months ago 1.09GB
2024-11-06T07:18:53.5905383Z debian 10 69530eaa9e7e 4 months ago 115MB
2024-11-06T07:18:53.5905720Z alpine 3.16 d49a5025be10 9 months ago 5.54MB
2024-11-06T07:18:53.5906109Z node 16 1ddc7e4055fd 14 months ago 909MB
2024-11-06T07:18:53.5906556Z node 16-alpine 2573171e0124 15 months ago 118MB
2024-11-06T07:18:53.5906687Z
2024-11-06T07:18:53.5923641Z The push refers to repository [ghcr.io/my-github-org/my-repo]
2024-11-06T07:18:53.6754212Z ead24dff829c: Preparing
2024-11-06T07:18:53.6754669Z 5f70bf18a086: Preparing
2024-11-06T07:18:53.6754950Z bff24fa5ba6d: Preparing
2024-11-06T07:18:53.6755208Z 734661639d51: Preparing
2024-11-06T07:18:53.6755464Z 008aac071916: Preparing
2024-11-06T07:18:53.6755784Z 261abc8281b7: Preparing
2024-11-06T07:18:53.6756033Z 7794e8d8212d: Preparing
2024-11-06T07:18:53.6756282Z ceffe60ed721: Preparing
2024-11-06T07:18:53.6756529Z 261abc8281b7: Waiting
2024-11-06T07:18:53.6756777Z 7794e8d8212d: Waiting
2024-11-06T07:18:53.6757020Z ceffe60ed721: Waiting
2024-11-06T07:18:53.8064164Z denied: denied
2024-11-06T07:18:53.8071559Z
2024-11-06T07:18:53.8100848Z ##[error]denied: denied
2024-11-06T07:18:53.8205302Z ##[error]The process '/usr/bin/docker' failed with exit code 1
2024-11-06T07:18:53.8277688Z ##[section]Finishing: Push an image
Full task logs with system.debug enabled
Repro steps
My service connection for ghcr:
The text was updated successfully, but these errors were encountered: