I’m pulling docker images from a private registry hosted on artifactory. I use the insecure-registries setting key to specify the URL of the registry to ensure the TLS verification is skipped.
My host machine has Windows OS.
While using the latest version of docker, it seems to be ignoring the insecure-registries setting.
Steps to reproduce the problem:
- Install docker using latest installer (4.34.3)
- Update the daemon.json to add the insecure-registries key and value.
- Restart Docker Desktop.
- Verify insecure-registries being reflected in the output of “docker info” command.5.
- docker login → Succeeds
- docker pull /user-service:latest → Command fails. The error mentions TLS verification error.
Workaround for me is:
- Install docker using older installer (4.31.1)
- Update the daemon.json to add the insecure-registries key and value.
- Restart Docker Desktop.
- Verify insecure-registries being reflected in the output of “docker info” command.
- Update to latest version from within the app. So we are now on 4.34.3
- docker login → Succeeds
- docker pull /user-service:latest → Succeeds