My goal is to stand up Nexus Repository Manager and configure it as a Docker registry via script. I am deploying this in a kubernetes cluster and intend to use the helm chart.
The below is me testing it on my local machine via docker and virtualbox.
I stand up a nexus repository manager, successfully use the API to create a Docker internal repo and fail to be able to log in to the Docker registry and therefore am not able to push and pull images to it.
I have been testing this on Docker on the desktop with the GitHub repo from Sonatype classhttps://github.com/CMYanko/nexus-platform-reference
I create the repository using the following repohttps://github.com/sonatype-nexus-community/nexus-scripting-examples
Docker login192.168.99.100:8081/repository/docker-internal –u admin –p admin123
Error msg is …
docker login192.168.99.100:8081 -u admin -p admin123
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Gethttps://192.168.99.100:8081/v2/: http: server gave HTTP response to HTTPS client