Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

configure rest api for docker in windows

(Posted on behalf of the OP).

Finally, I found how to enable Remote API of Docker Containers on Windows. The key point is file daemon.json which place in C:ProgramDatadockerconfig.

In the guide linked in the question, the author only mention that we should place in it something like:

{"hosts": ["tcp://0.0.0.0:2376", "npipe://"]}  
But when I try to add this to daemon.json, my daemon don't work on CLI. At last, I reverse the order of array like

{"hosts": ["npipe://", "tcp://0.0.0.0:2376"]}   
My docker will work well in both CLI & Remote API. Good experience with Windows Docker and thanks for your attention!
 
PREVIOUS NEXT
Tagged: #configure #rest #api #docker #windows
ADD COMMENT
Topic
Name
3+3 =