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:

  1. edit c:/users/username/.docker/machine/default/config.json
  2. add registry : "insecureregistry": ["x.x.x.x:port"]
  3. 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:

  1. edit c:/users/username/.docker/machine/default/config.json
  2. add registry : "insecureregistry": ["x.x.x.x:port"]
  3. restart docker > docker-machine.exe restart default (didn't work)
  4. restart windows (there must better way ;-)
  5. docker login x.x.x.x:port

Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -