9.1Docker API
Docker API种类
Docker Remote API: docker run等操作均是通过调用该API向Docker Daemon发起请求的
Docker Registry API
Docker Hub API
docker remote API
容器列表--获取所有容器的清单
GET /containers/json
curl -X GET http://127.0.0.1:9999/containers/json?all=1
创建新容器
POST /containers/create
监控容器--使用容器ID获取该容器底层信息
GET /containers/容器ID/json
curl -X GET http://127.0.0.1:9999/containers/83jnd72hjs/json
进程列表--获取容器内进程的清单
GET /containers/容器ID/top
容器日志--获取容器的标准输出和错误日志
GET /containers/容器ID/logs
导出容器--导出容器内容
GET /containers/容器ID/export
启动、停止、重启、终止
POST /containers/容器ID/start stop restart kill
标签:容器,GET,ID,API,Docker,Docker09,containers
From: https://www.cnblogs.com/lixunblogs/p/18167365