When I tried to docker login x.x.x.x:8081 it gives me following error
Error response from daemon: Get "https://10.43.18.20:8081/v2/": http: server gave HTTP response to HTTPS client
In some places I read that adding a insecure registry will solve the problem. So I tried it but unable to locate the Docker daemon configuration file (/etc/docker/daemon.json) to configure the insecure registry.
I'm using Rancher Desktop version 1.12.3 on Windows and encountering difficulties setting up an insecure registry for Docker. Need assistance to understand how to configure Docker securely within Rancher Desktop on Windows. Planning to add insecure registry for plain HTTP communication.
Steps Taken:
- Tried accessing /etc/docker/ directory in WSL terminal, but it doesn't exist.
- Searched for the configuration file using find command without success.
- Added
DOCKER_OPTS="--insecure-registry=x.x.x.x:8081"in/etc/conf.d/dockerfile, that won't work. also whenever I restart the docker it is getting removed. - Tried creating daemon.json file inside
<user>/.dockerfolder and added following
{
"insecure-registries":["x.x.x.x:8081"]
}
That also don't solve the problem.
Any help will be appreciated. Thank you in advance!!