Skip to content

Instantly share code, notes, and snippets.

View SalmonKing72's full-sized avatar
✝️

SalmonKing72

✝️
View GitHub Profile
@SalmonKing72
SalmonKing72 / docker-machine-insecure-registry.md
Last active July 7, 2021 11:44
docker-machine: adding insecure registry configuration to an existing machine/VM

The issue

  • deployed a local docker registry container to a docker-machine VM
  • cannot push to local docker registry
  • get an error including a message similar to, "http: server gave HTTP response to HTTPS client"

The solution

  • in order to push to this local registry you need to make some modifications to your docker VM
  • open c:\users\<user-name>\.docker\machine\machines\default\config.json or ~/.docker/machine/machines/default/config.json in an editor
  • find the InsecureRegistry property and append "localhost:5000" to it
  • go to your docker terminal