By default docker use https to connect to docker registry. But there can be use cases to use insecure registry. Here are the steps to use insecure registry.
In ubuntu
edit the file /etc/default/docker and update DOCKER_OPTS e.g
DOCKER_OPTS='--insecure-registry 15.206.81.210:9000'
where 15.206.81.210 is ipaddress of registry and 9000 is your port on which registry is configured.
In Centos
Edit the file /etc/docker/daemon.json e.g.
$ vi /etc/docker/daemon.json
{
"insecure-registries" : ["15.206.81.210:9001"]
}
$ service docker restart
where 15.206.81.210 is ipaddress of registry and 9001 is your port on which registry is configured.
Nexus Error
Error response from daemon: Get https://15.206.81.210:8081/v2/: http: server gave HTTP response to HTTPS client
Docker Tutorials Fundamental To Advanced-2021 Crash Course:- https://bit.ly/3hOIbTB
session-1-docker-advance-tutorials-by-rajesh-jan-2021
session-2-docker-advance-tutorials-by-rajesh-jan-2021
session-3-docker-advance-tutorials-by-rajesh-jan-2021
session-4-docker-advance-tutorials-by-rajesh-jan-2021
session-5-docker-advance-tutorials-by-rajesh-jan-2021
session-6-docker-advance-tutorials-by-rajesh-jan-2021
session-7-docker-advance-tutorials-by-rajesh-jan-2021
session-8-docker-advance-tutorials-by-rajesh-jan-2021
session-9-docker-advance-tutorials-by-rajesh-jan-2021
session-10-docker-advance-tutorials-by-rajesh-jan-2021
session-11-docker-advance-tutorials-by-rajesh-jan-2021
Latest posts by Rajesh Kumar (see all)
- Top 10 Website Development Companies in Vadodara - December 20, 2024
- Compare SAST, DAST and RASP & its Tools for DevSecOps - December 19, 2024
- Comparing AWS, Azure, and Google Cloud in terms of services - December 19, 2024