diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-03-26 15:29:20 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-04-04 12:26:29 -0400 |
commit | 7309e38ddda4245a786bb92d036f7836328818c9 (patch) | |
tree | d7359959521c8fc956588ae3ffe1177ee4d35a59 /libpod | |
parent | ee770ad5b54845e345384be3e01c700e93926b44 (diff) | |
download | podman-7309e38ddda4245a786bb92d036f7836328818c9.tar.gz podman-7309e38ddda4245a786bb92d036f7836328818c9.tar.bz2 podman-7309e38ddda4245a786bb92d036f7836328818c9.zip |
Add handling for new named volumes code in pkg/spec
Now that named volumes must be explicitly enumerated rather than
passed in with all other volumes, we need to split normal and
named volumes up before passing them into libpod. This PR does
this.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/runtime_ctr.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go index fafbc9969..ba643150d 100644 --- a/libpod/runtime_ctr.go +++ b/libpod/runtime_ctr.go @@ -545,14 +545,6 @@ func (r *Runtime) GetLatestContainer() (*Container, error) { return ctrs[lastCreatedIndex], nil } -// Check if volName is a named volume and not one of the default mounts we add to containers -func isNamedVolume(volName string) bool { - if volName != "proc" && volName != "tmpfs" && volName != "devpts" && volName != "shm" && volName != "mqueue" && volName != "sysfs" && volName != "cgroup" { - return true - } - return false -} - // Export is the libpod portion of exporting a container to a tar file func (r *Runtime) Export(name string, path string) error { ctr, err := r.LookupContainer(name) |