mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Add ability to get a runtime that renumbers
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -8,8 +8,17 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// GerRuntimeRenumber gets a libpod runtime that will perform a lock renumber
|
||||||
|
func GetRuntimeRenumber(c *cliconfig.PodmanCommand) (*libpod.Runtime, error) {
|
||||||
|
return getRuntime(c, true)
|
||||||
|
}
|
||||||
|
|
||||||
// GetRuntime generates a new libpod runtime configured by command line options
|
// GetRuntime generates a new libpod runtime configured by command line options
|
||||||
func GetRuntime(c *cliconfig.PodmanCommand) (*libpod.Runtime, error) {
|
func GetRuntime(c *cliconfig.PodmanCommand) (*libpod.Runtime, error) {
|
||||||
|
return getRuntime(c, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
func getRuntime(c *cliconfig.PodmanCommand, renumber bool) (*libpod.Runtime, error) {
|
||||||
options := []libpod.RuntimeOption{}
|
options := []libpod.RuntimeOption{}
|
||||||
|
|
||||||
storageOpts, volumePath, err := util.GetDefaultStoreOptions()
|
storageOpts, volumePath, err := util.GetDefaultStoreOptions()
|
||||||
|
Reference in New Issue
Block a user