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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -