package
Version:
v1.8.2
Opens a new window with list of versions in this module.
Published: Sep 1, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package docker 提供测试期间启动与停止 docker 容器的能力。
DumpContainerLogs 输出运行中容器的日志,用于测试失败时排查
StopContainer 停止并删除指定容器(含挂载卷)
Container 记录测试用容器的名字与宿主机访问地址
StartContainer 启动指定容器供测试使用。
每个测试可能运行在独立进程中,进程间无法串行化此调用,
故先查固定名容器是否已存在;启动失败时退避等待其他进程把容器拉起来。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.