MCPcopy
hub / github.com/google/gvisor / Container

Struct Container

pkg/test/dockerutil/container.go:50–66  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

48// client. Container is backed by the official golang docker API.
49// See: https://pkg.go.dev/github.com/docker/docker.
50type 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.
69type RunOpts struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected