Changes between Version 38 and Version 39 of linux/docker


Ignore:
Timestamp:
2016/04/06 11:03:40 (8 years ago)
Author:
yuna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • linux/docker

    v38 v39  
    537537127.0.0.1   kubernetes.io/hostname=127.0.0.1   Ready 
    538538}}} 
     539 
     540== Docker API 
     541 
     542Docker APIを利用するとRESTでコンテナ情報を取得できる。 
     543 
     544コンテナ一覧取得 
     545 
     546{{{ 
     547# curl -L http://localhost:2375/v1.22/containers/json 
     548}}} 
     549 
     550Swarm利用時 
     551 
     552{{{ 
     553# curl -L http://localhost:4000/v1.22/containers/json 
     554}}} 
     555 
     556コンテナ情報取得 
     557 
     558{{{ 
     559# curl -L http://localhost:4000/v1.22/containers//docker1.localdomain/test/top?ps_args=-auxww 
     560}}