Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi-user login #516

Closed
a76yyyy opened this issue Jun 1, 2023 · 1 comment
Closed

Support multi-user login #516

a76yyyy opened this issue Jun 1, 2023 · 1 comment

Comments

@a76yyyy
Copy link

a76yyyy commented Jun 1, 2023

Behaviour

Currently it seems to support only a single user login to a hub address, hope to support multi-user login

Steps to reproduce this issue

- name: a Login to DockerHub
  uses: docker/login-action@v2
  with:
    registry: docker.io
    username: ${{ secrets.A_DOCKER_USERNAME }}
    password: ${{ secrets.A_DOCKER_PASSWORD }}
- name: b login to DockerHub
  uses: docker/login-action@v2
  with:
    registry: docker.io
    username: ${{ secrets.b_DOCKER_USERNAME }}
    password: ${{ secrets.b_DOCKER_PASSWORD }}

Expected behaviour

Support multi-user login

# cat ~/.docker/config.json

{
    "auths":{
        "https://index.docker.io/v1/":{
            "auth":"xxxx"
        },
        "https://index.docker.io/v1/":{
            "auth":"xxxx"
        }
    }
}

Actual behaviour

# cat ~/.docker/config.json

{
    "auths":{
        "https://index.docker.io/v1/":{
            "auth":"xxxx"
        }
    }
}
@crazy-max
Copy link
Member

Multi-auth for the same registry is not supported by the docker cli. Suggest to open an issue on https://github.com/docker/cli instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants