-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhostconfig.go
More file actions
24 lines (20 loc) · 928 Bytes
/
Copy pathhostconfig.go
File metadata and controls
24 lines (20 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package container
import "github.com/relab/container/mount"
// The struct definitions in this file is largely copied from the Docker API
// types, but may have been simplified for our use case.
// See the original [HostConfig].
//
// [HostConfig]: https://github.com/moby/moby/blob/master/api/types/container/hostconfig.go#L424
// HostConfig the non-portable Config structure of a container.
//
// This is a simplified version of the Docker API's [HostConfig].
// See the full version in case we want to extend this in the future.
//
// [HostConfig]: https://pkg.go.dev/github.com/docker/docker/api/types/container#HostConfig
type HostConfig struct {
// Applicable to all platforms
PortBindings PortMap // Port mapping between the exposed port (container) and the host
AutoRemove bool // Automatically remove container when it exits
// Mounts specs used by the container
Mounts []mount.Mount `json:",omitempty"`
}