diff options
author | Matthew Heon <mheon@redhat.com> | 2020-02-14 09:54:46 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-02-21 09:37:30 -0500 |
commit | e3a549b7b1191a1667373cf60f8d08b96bbce7ba (patch) | |
tree | fd358c5c02aa58ffd15816c8fbe2daa67b9f7c55 /libpod/container.go | |
parent | 4f5b40598f53915f138208e493279dfcfe70ab06 (diff) | |
download | podman-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/container.go')
-rw-r--r-- | libpod/container.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libpod/container.go b/libpod/container.go index 5e5c8ab26..dbd15e55f 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -249,8 +249,6 @@ type ContainerConfig struct { RootfsImageName string `json:"rootfsImageName,omitempty"` // Rootfs to use for the container, this conflicts with RootfsImageID Rootfs string `json:"rootfs,omitempty"` - // Whether to mount volumes specified in the image. - ImageVolumes bool `json:"imageVolumes"` // Src path to be mounted on /dev/shm in container. ShmDir string `json:"ShmDir,omitempty"` // Size of the container's SHM. @@ -510,12 +508,6 @@ func (c *Container) Image() (string, string) { return c.config.RootfsImageID, c.config.RootfsImageName } -// ImageVolumes returns whether the container is configured to create -// persistent volumes requested by the image -func (c *Container) ImageVolumes() bool { - return c.config.ImageVolumes -} - // ShmDir returns the sources path to be mounted on /dev/shm in container func (c *Container) ShmDir() string { return c.config.ShmDir |