Docker Remote Api 相关配置
基于Ubuntu 16.04 , Docker Version 18.05.0-ce , API Version: 1.37
开启API
$ sudo vim /lib/systemd/system/docker.service |
输出内容
{"Platform":{"Name":""},"Components":[{"Name":"Engine","Version":"18.05.0-ce","Details":{"ApiVersion":"1.37","Arch":"amd64","BuildTime":"2018-05-09T22:14:32.000000000+00:00","Experimental":"false","GitCommit":"f150324","GoVersion":"go1.9.5","KernelVersion":"4.4.0-31-generic","MinAPIVersion":"1.12","Os":"linux"}}],"Version":"18.05.0-ce","ApiVersion":"1.37","MinAPIVersion":"1.12","GitCommit":"f150324","GoVersion":"go1.9.5","Os":"linux","Arch":"amd64","KernelVersion":"4.4.0-31-generic","BuildTime":"2018-05-09T22:14:32.000000000+00:00"}
部分接口
# 获取所有容器信息 |