mirror of
https://github.com/containers/podman.git
synced 2025-06-04 21:55:24 +08:00
Add support for the global flags and config files
Note: This PR doesn't provide full rootless support that will be addressed in a future PR Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -516,6 +516,8 @@ func ParseInputTime(inputTime string) (time.Time, error) {
|
||||
}
|
||||
|
||||
// GetGlobalOpts checks all global flags and generates the command string
|
||||
// FIXME: Port input to config.Config
|
||||
// TODO: Is there a "better" way to reverse values to flags? This seems brittle.
|
||||
func GetGlobalOpts(c *cliconfig.RunlabelValues) string {
|
||||
globalFlags := map[string]bool{
|
||||
"cgroup-manager": true, "cni-config-dir": true, "conmon": true, "default-mounts-file": true,
|
||||
|
Reference in New Issue
Block a user