summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-02 22:48:12 +0200
committerGitHub <noreply@github.com>2019-05-02 22:48:12 +0200
commit139eeb3eb3c86555d53e20a19408a6391d3e04b5 (patch)
tree95e71b3f77b774fd67b67310ff2eff2962e40e65 /libpod/options.go
parentb5e5585ada50a887f439e513c5deae30c89648de (diff)
parent416cc20c6800d9c315a689a4c425af23f89864e4 (diff)
downloadpodman-139eeb3eb3c86555d53e20a19408a6391d3e04b5.tar.gz
podman-139eeb3eb3c86555d53e20a19408a6391d3e04b5.tar.bz2
podman-139eeb3eb3c86555d53e20a19408a6391d3e04b5.zip
Merge pull request #3051 from mheon/podman_migrate_fixes
Small fixes for #2950
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go21
1 files changed, 3 insertions, 18 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 9932d5453..d3e0a295d 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -1,7 +1,6 @@
package libpod
import (
- "context"
"net"
"os"
"path/filepath"
@@ -437,10 +436,9 @@ func WithRenumber() RuntimeOption {
}
}
-// WithMigrate instructs libpod to perform a lock migrateing while
-// initializing. This will handle migrations from early versions of libpod with
-// file locks to newer versions with SHM locking, as well as changes in the
-// number of configured locks.
+// WithMigrate instructs libpod to migrate container configurations to account
+// for changes between Libpod versions. All running containers will be stopped
+// during a migration, then restarted after the migration is complete.
func WithMigrate() RuntimeOption {
return func(rt *Runtime) error {
if rt.valid {
@@ -467,19 +465,6 @@ func WithShmDir(dir string) CtrCreateOption {
}
}
-// WithContext sets the context to use.
-func WithContext(ctx context.Context) RuntimeOption {
- return func(rt *Runtime) error {
- if rt.valid {
- return ErrRuntimeFinalized
- }
-
- rt.ctx = ctx
-
- return nil
- }
-}
-
// WithSystemd turns on systemd mode in the container
func WithSystemd() CtrCreateOption {
return func(ctr *Container) error {