json - Docker Remote API does not list containers -


i have locally installed docker server runs 1 container.

 container id   image   command      created      status      ports names  3d7ef4f6bb0a   debian "/bin/bash"  7 hours ago  7 hours  0.0.0.0:80->2376/tcp   nostalgic_fermat 

when tried use docker remote api in order information container did not see json output containers running on host. result rest call is:

wget -v 192.168.99.100:2376/containers/json/  --2016-01-16 23:57:20--  http://192.168.99.100:2376/containers/json/ connecting 192.168.99.100:2376... connected. http request sent, awaiting response... 200 no headers, assuming http/0.9 length: unspecified saving to: 'index.html.3'  index.html.3                                                    [ <=>                                                                                                                                        ]       7  --.-kb/s   in 0s       2016-01-16 23:57:20 (297 kb/s) - 'index.html.3' saved [7] 

what missing?

the version of api is:

 client:  version:      1.9.0  api version:  1.21  go version:   go1.4.3  git commit:   76d6bc9  built:        tue nov  3 19:20:09 utc 2015  os/arch:      darwin/amd64 

edit (resolve)

it appears docker server requires ssl authentication. able authorized docker localhost providing local docker server certificates.

the following command stores json file information of containers running on local docker server.

wget --no-check-certificate --ca-certificate ca.pem --certificate=cert.pem --certificate-type=pem --private-key=key.pem --private-key-type=pem https://192.168.99.100:2376/containers/json 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -