diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-03-12 15:53:08 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-04-04 12:26:29 -0400 |
commit | 11799f4e0ec6256c65691828fb73501bda5d7eec (patch) | |
tree | 6f214ab0ddb882b83277d77209544692b0bbfa7c /libpod/container.go | |
parent | 1759eb09e1c13bc8392d515d69ca93226d067c73 (diff) | |
download | podman-11799f4e0ec6256c65691828fb73501bda5d7eec.tar.gz podman-11799f4e0ec6256c65691828fb73501bda5d7eec.tar.bz2 podman-11799f4e0ec6256c65691828fb73501bda5d7eec.zip |
Add named volumes for each container to database
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go index 739406e42..b02e536c5 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -234,6 +234,8 @@ type ContainerConfig struct { // These include the SHM mount. // These must be unmounted before the container's rootfs is unmounted. Mounts []string `json:"mounts,omitempty"` + // NamedVolumes lists the named volumes to mount into the container. + NamedVolumes []*ContainerNamedVolume `json:"namedVolumes,omitempty"` // Security Config @@ -368,6 +370,18 @@ type ContainerConfig struct { HealthCheckConfig *manifest.Schema2HealthConfig `json:"healthcheck"` } +// ContainerNamedVolume is a named volume that will be mounted into the +// container. +type ContainerNamedVolume struct { + // Name is the name of the volume to mount in. + // Must resolve to a valid volume present in this Podman. + Name string `json:"volumeName"` + // Dest is the mount's destination + Dest string `json:"dest"` + // Options are fstab style mount options + Options []string `json:"options,omitempty"` +} + // ContainerStatus returns a string representation for users // of a container state func (t ContainerStatus) String() string { |