mirror of https://github.com/containers/podman.git
				
				
				
			Add ability to get a runtime that renumbers
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
		
							parent
							
								
									f9c548219b
								
							
						
					
					
						commit
						43db7734e8
					
				|  | @ -8,8 +8,17 @@ import ( | |||
| 	"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
 | ||||
| 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{} | ||||
| 
 | ||||
| 	storageOpts, volumePath, err := util.GetDefaultStoreOptions() | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue