In the docker client server, I am getting the following error when trying to pull docker images:
ERROR: failed to solve: failed to do request: Head “https://192.168.1.8:8181/v2/docker/dockerfile/manifests/1?ns=docker.io”: http: server gave HTTP response to HTTPS client
In the client, I have configured the /etc/docker/daemon.json
as follows:
{
"features": {
"buildkit": true
},
"insecure-registries": [
"192.168.1.8:8181"
],
"registry-mirrors": [
"http://192.168.1.8:8181"
]
}
For the nexus docker container (version 3.43.0-01) on the server these ports are mapped: 0.0.0.0:8181->8181/tcp, 0.0.0.0:5555->8081/tcp
In the Repositories, I have a docker group
http://serverhostname:5555/repository/docker-all/
HTTP is checked with port 8181
HTTPs is unchecked
Allow Anonymous docker pull is checked.
In group members, I have dockerhub-proxy
For the dockerhub-proxy
I have the URL http://serverhostname:5555/repository/dockerhub-proxy/
HTTP and HTTPs are empty - no ports here.
Allow Anonymous docker pull is checked.
Remote storage: https://registry-1.docker.io
And I selected use dockerhub.
In the Active Realms - I have Docker Bearer Token Realm.