aboutsummaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-04-30 11:09:48 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-03 12:23:12 +0000
commita0e8f887009bb336ef887df0ffbb9561a603bf35 (patch)
treee439723f44c74366ae9c8994cf81e648356f92a4 /libpod/container.go
parentf6d41abfb04550f473b80d89cf8c02e5744a5b0b (diff)
downloadpodman-a0e8f887009bb336ef887df0ffbb9561a603bf35.tar.gz
podman-a0e8f887009bb336ef887df0ffbb9561a603bf35.tar.bz2
podman-a0e8f887009bb336ef887df0ffbb9561a603bf35.zip
Add config bool to indicate there are user volumes
This allows us to accurately trigger OCI hooks that trigger on the presence of volume mounts. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #700 Approved by: rhatdan
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go
index e532ecba2..67aa086fc 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -190,6 +190,10 @@ type ContainerConfig struct {
// These include the SHM mount
// These must be unmounted before the container's rootfs is unmounted
Mounts []string `json:"mounts,omitempty"`
+ // UserVolumes indicates that the container has user-added volume mounts
+ // It is used to trigger OCI hooks that rely on the presence of user
+ // volumes
+ UserVolumes bool `json:"userVolumes, omitempty"`
// Security Config
// Whether the container is privileged