Docker config file location on windows to, e.g., enable insecure registry / docker options -
i want add insecure-registry testing purposed on windows (10) machine docker. unfortunately not able find information usual /etc/docker/default config file located on windows.
is here able add docker options on windows ?
cheers.
(the error when trying pull insecure registry without adding options is: "failed tls handshake x.x.x.x cannot validate certificate x.x.x.x because doesn't contain ip sans")
update1
i did find way looks promising:
- edit c:/users/username/.docker/machine/default/config.json
- add registry : "insecureregistry": ["x.x.x.x:port"]
- restart docker (?) docker-machine.exe restart default
but error: "get https://x.x.x.x:port/v1/_ping: x509: cannot validate certificate x.x.x.x because doesn't contain ip sans"
(https://akrambenaissi.com/2015/11/17/addingediting-insecure-registry-to-docker-machine-afterwards/)
update2
after restarting windows worked:
- i received "unauthorized: authentication required"
- thus > docker login x.x.x.x:port , it's working!
the following worked me:
- edit c:/users/username/.docker/machine/default/config.json
- add registry : "insecureregistry": ["x.x.x.x:port"]
- restart docker > docker-machine.exe restart default (didn't work)
- restart windows (there must better way ;-)
- docker login x.x.x.x:port
Comments
Post a Comment