Skip to content

[BUG] Gitlab Registry login failed #873

@knifesk

Description

@knifesk

Description

Hey! I wanted to deploy a custom image that I have pushed to Gitlab's registry. So, I added the registry, used a Personal Access token with the read_registry permission but I get an access denied error.

Image

then under username I used my gitlab's username (also tried with email)

Image Image

Just to validate my token was working I used docker login registry.gitlab.com and used my username and token and it successfully logged in.. I tried to do the same inside de dockhand's container and it worked, and I can pull the images fine, but when I go to browse on the UI I still get an error.

I also tried without https:// (hostname only) and I see the same error, but when I go to dockhand's logs I see an error about the URL being invalid.

Steps to reproduce

  1. Create new registry: input {Gitlab, https://registry.gitlab.com, username, token}
  2. Go to registry -> browse.
  3. Get an error response.

Logs

/*NOT LOGS, but my Dockhand's compose file*/

networks:
  proxy:
    external: true

services:
  dockhand:
    image: fnsys/dockhand:latest
    container_name: dockhand
    restart: unless-stopped
    #ports:
    #  - 3000:3000
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./data:/app/data
      - ../../:/stacks
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.dockhand.rule=Host(`<redacted>`)"
      - "traefik.http.routers.dockhand.entrypoints=https"
      - "traefik.http.routers.dockhand.tls=true"
      - "traefik.http.services.dockhand.loadbalancer.server.port=3000"
    networks:
      - proxy

Browser logs

Dockhand version

v1.0.23

Hawser version (if used)

No response

Connection mode

socket

Please confirm the following

  • I have already searched for relevant existing issues and discussions before opening this report.
  • I have updated the title field above with a concise description.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions