summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-06-12 17:14:21 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-06-12 17:14:21 -0400
commit4e7e5f5cbdfe343f99a76d12b221f390014266ed (patch)
tree8d091aa748c3081f8a5f6fa4016a2a35a94140bd /libpod/options.go
parent0084b04acab1ec85fb0141c197882fd7cad2948b (diff)
downloadpodman-4e7e5f5cbdfe343f99a76d12b221f390014266ed.tar.gz
podman-4e7e5f5cbdfe343f99a76d12b221f390014266ed.tar.bz2
podman-4e7e5f5cbdfe343f99a76d12b221f390014266ed.zip
Make Inspect's mounts struct accurate to Docker
We were formerly dumping spec.Mount structs, with no care as to whether it was user-generated or not - a relic of the very early days when we didn't know whether a user made a mount or not. Now that we do, match our output to Docker's dedicated mount struct. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 20aa51981..cdac09654 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -1127,6 +1127,8 @@ func WithGroups(groups []string) CtrCreateOption {
// These are not added to the container's spec, but will instead be used during
// commit to populate the volumes of the new image, and to trigger some OCI
// hooks that are only added if volume mounts are present.
+// Furthermore, they are used in the output of inspect, to filter volumes -
+// only volumes included in this list will be included in the output.
// Unless explicitly set, committed images will have no volumes.
// The given volumes slice must not be nil.
func WithUserVolumes(volumes []string) CtrCreateOption {