ACME Access Only at docker login

Problem to solve

Describe your question in as much detail as possible:

I want to login via docker from testserver to own gitlab-server for pulling docker image from gitlab-server in testserver. The connection between testserver and gitlab-server is vpn, so I don’t need secure http from gitlab contrainer registery. Only http connection.

docker login --username xxx --password xxx http://dsgitlab-registry.directservices.local:5050
I got error messages
Error response from daemon: Get "http://dsgitlab-registry.directservices.local:5050/v2/": denied: <!DOCTYPE html><html><head><title>ACME Access Only</title></head><body>ACME Access Only</body></html>

curl http://dsgitlab-registry.directservices.local:5050 is working.

Configuration

On self-managed instances, add the relevant configuration settings or changes.

gitlab-server
/etc/gitlab/gitlab.rb

git_data_dirs({
   "default" => {
     "path" => "/srv/gitlab"
    }
 })
.... email config....
registry_external_url 'http://dsgitlab-registry.directservices.local:5050'

testserver
/etc/docker/daemon.json

{
	"insecure-registries" : [ "dsgitlab-registry.directservices.local:5050" ]
}

Versions

Please select whether options apply, and add the version information.

Versions
GitLab 16.9