summaryrefslogtreecommitdiff
path: root/cmd/podman/libpodruntime
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-04-15 10:36:19 -0400
committerMatthew Heon <mheon@redhat.com>2019-04-15 10:36:19 -0400
commit936537cfe752e82f4782d6b8f5ff2ff85132c555 (patch)
tree0514f3444691385bbcd1be2f4790b57a654acdbb /cmd/podman/libpodruntime
parentb9260053e94f2b4a00dbe7eba67fd195018bf94a (diff)
downloadpodman-936537cfe752e82f4782d6b8f5ff2ff85132c555.tar.gz
podman-936537cfe752e82f4782d6b8f5ff2ff85132c555.tar.bz2
podman-936537cfe752e82f4782d6b8f5ff2ff85132c555.zip
Call the runtime with WithRenumber() when asked
We must have lost this at some point, rendering system renumber useless. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'cmd/podman/libpodruntime')
-rw-r--r--cmd/podman/libpodruntime/runtime.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/libpodruntime/runtime.go b/cmd/podman/libpodruntime/runtime.go
index 3faea493c..78adf1252 100644
--- a/cmd/podman/libpodruntime/runtime.go
+++ b/cmd/podman/libpodruntime/runtime.go
@@ -64,6 +64,10 @@ func getRuntime(c *cliconfig.PodmanCommand, renumber bool) (*libpod.Runtime, err
storageOpts.GraphDriverOptions = c.GlobalFlags.StorageOpts
}
+ if renumber {
+ options = append(options, libpod.WithRenumber())
+ }
+
// Only set this if the user changes storage config on the command line
if storageSet {
options = append(options, libpod.WithStorageConfig(storageOpts))