Container represents a Docker Container allowing user to configure and control as one would with the 'docker' client. Container is backed by the official golang docker API. See: https://pkg.go.dev/github.com/docker/docker.
| 48 | // client. Container is backed by the official golang docker API. |
| 49 | // See: https://pkg.go.dev/github.com/docker/docker. |
| 50 | type Container struct { |
| 51 | Name string |
| 52 | runtime string |
| 53 | logger testutil.Logger |
| 54 | client *client.Client |
| 55 | id string |
| 56 | mounts []mount.Mount |
| 57 | links []string |
| 58 | copyErr error |
| 59 | cleanups []func() |
| 60 | |
| 61 | // profile is the profiling hook associated with this container. |
| 62 | profile *profile |
| 63 | |
| 64 | // sniffGPUOpts, if set, sets the rules for GPU sniffing for this container. |
| 65 | sniffGPUOpts *SniffGPUOpts |
| 66 | } |
| 67 | |
| 68 | // RunOpts are options for running a container. |
| 69 | type RunOpts struct { |
nothing calls this directly
no outgoing calls
no test coverage detected