summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2020-02-14 09:54:46 -0500
committerMatthew Heon <mheon@redhat.com>2020-02-21 09:37:30 -0500
commite3a549b7b1191a1667373cf60f8d08b96bbce7ba (patch)
treefd358c5c02aa58ffd15816c8fbe2daa67b9f7c55 /libpod/options.go
parent4f5b40598f53915f138208e493279dfcfe70ab06 (diff)
downloadpodman-e3a549b7b1191a1667373cf60f8d08b96bbce7ba.tar.gz
podman-e3a549b7b1191a1667373cf60f8d08b96bbce7ba.tar.bz2
podman-e3a549b7b1191a1667373cf60f8d08b96bbce7ba.zip
Remove ImageVolumes from database
Before Libpod supported named volumes, we approximated image volumes by bind-mounting in per-container temporary directories. This was handled by Libpod, and had a corresponding database entry to enable/disable it. However, when we enabled named volumes, we completely rewrote the old implementation; none of the old bind mount implementation still exists, save one flag in the database. With nothing remaining to use it, it has no further purpose. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 1fd588867..d01e8a85f 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -593,7 +593,7 @@ func WithUser(user string) CtrCreateOption {
// other configuration from the image will be added to the config.
// TODO: Replace image name and ID with a libpod.Image struct when that is
// finished.
-func WithRootFSFromImage(imageID string, imageName string, useImageVolumes bool) CtrCreateOption {
+func WithRootFSFromImage(imageID string, imageName string) CtrCreateOption {
return func(ctr *Container) error {
if ctr.valid {
return define.ErrCtrFinalized
@@ -608,7 +608,6 @@ func WithRootFSFromImage(imageID string, imageName string, useImageVolumes bool)
ctr.config.RootfsImageID = imageID
ctr.config.RootfsImageName = imageName
- ctr.config.ImageVolumes = useImageVolumes
return nil
}