Skip to content

[Archery] archery docker push doesn't support ghcr.io #47795

Closed

Description

@kou

Describe the bug, including details regarding any error messages, version, and platform.

We can change Docker registry by REPO in docker-compose.yml but Archery doesn't recognize it.

Use case:

REPO: ghcr.io/${{ github.repository }}-dev

- name: Docker Push
if: >-
success() &&
github.event_name == 'push' &&
github.ref_name == 'main'
env:
ARCHERY_DOCKER_USER: ${{ github.actor }}
ARCHERY_DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
run: archery docker push cpp-jni

https://github.com/apache/arrow/actions/runs/18445566748/job/52551782069#step:7:19

Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
Traceback (most recent call last):
  File "/home/runner/work/arrow/arrow/dev/archery/archery/docker/core.py", line 229, in _execute_docker
    result = Docker().run(*args, **kwargs)
  File "/home/runner/work/arrow/arrow/dev/archery/archery/utils/command.py", line 78, in run
    return subprocess.run(invocation, **kwargs)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.13.7/x64/lib/python3.13/subprocess.py", line 577, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'login', '-u', 'kou', '-p', '***']' returned non-zero exit status 1.

Component(s)

Archery

Activity

  1. added this to the 22.0.0 milestone on Oct 12, 2025
  2. added a commit that references this issue on Oct 13, 2025
  3. kou commented on Oct 13, 2025

    @kou
    MemberAuthor

    Issue resolved by pull request 47796
    #47796

  4. added a commit that references this issue on Oct 13, 2025
  5. added a commit that references this issue on Oct 15, 2025
  6. added a commit that references this issue on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions