Merge pull request #2944 from mheon/fix_renumber

Call the runtime with WithRenumber() when asked by 'system renumber' command
This commit is contained in:
OpenShift Merge Robot 2019-04-15 09:39:17 -07:00 committed by GitHub
commit c1e2b583c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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))