基于 template.md 的叙述风格,按照 docker-java-sdk.md 的大纲,编写 Docker Java SDK 使用教程文档。教程正文见 docker-java-sdk-tutorial.md。
| 类名 | 说明 |
|---|---|
QuickStart |
快速入门:客户端创建、连接、拉取镜像、建启容器 |
DockerClientFactory |
统一创建 DockerClient 的工厂类 |
ImageManageAPI |
镜像管理(list/inspect/pull/remove/tag/exists) |
ImageBuildAPI |
镜像构建(从 Dockerfile 构建) |
ContainerManageAPI |
容器管理(create/start/stop/kill/remove/list) |
ContainerOpsAPI |
容器运维(logs/exec/wait/copy) |
ContainerAdvancedAPI |
容器高级创建(HostConfig:重启策略/资源限制/端口映射) |
VolumeNetworkAPI |
数据卷与网络(卷 CRUD/持久化/自定义网络/DNS) |
RegistryPushAPI |
私有镜像仓库(registry/auth/tag/push/pull 闭环) |
MaintenanceOpsAPI |
运维监控(stats/top/logs -f/diff/commit/export/update/prune) |
System.out.printlnorg.junit.jupiter.api)feat: add Chapter 1 - Docker pre-configuration and todo planfeat: add Chapter 2 - DockerClient creation, connect, pull image, create/start containerfeat: add Chapter 3 - image management APIs (list/inspect/pull/remove/tag/exists)feat: add Chapter 4 - image build APIs from Dockerfilefeat: add Chapter 5 - container management APIs (create/start/stop/kill/remove/list/inspect)feat: add Chapter 6 - container ops APIs (logs/exec/wait/copy)feat: add Chapter 7 - DockerClient core objects and API reference tablefeat: add inline docker CLI command comparisons across all APIs, fix save/load and copyFromContainer implementationsfeat: add Chapter 8 advanced container creation (HostConfig) and Chapter 9 volume/network managementfeat: add Chapter 10 - image push to local registry (docker login/tag/push round trip)feat: add Chapter 11 - monitoring and maintenance ops (stats/top/logs/commit/export/prune)docs: add Chapter 8-11 tutorial, fix pingCmd and add prune to cheat sheet