Greetings yall. I've just swicthed job and now i'm...
# rancher-desktop
b
Greetings yall. I've just swicthed job and now i'm using rancher desktop. I am however struggling against a basic issue : i'm trying to login to registry.gitlab.com to pull private images, and i just can not. Heres the override script i'm using :
Copy code
provision:
  - mode: system
    script: |
        #!/bin/sh
        set -eux

        mkdir -p /etc/rancher/k3s

        cat <<'EOF' >/etc/rancher/k3s/registries.yaml
        mirrors:
            registry.gitlab.com:
                endpoint:
                    - <https://registry.gitlab.com/v2>
        configs:
            registry.gitlab.com:
                auth:
                    username: xxx
                    password: glpat-xxx
        EOF
I still get errpull 403 when pulling an image of kind :
<http://registry.gitlab.com/company/app/app:1.0.0-beta.latest|registry.gitlab.com/company/app/app:1.0.0-beta.latest>
doing docker login registry.gitlab.com and entering user glpat works. What am i doing wrong or missing ?