diff --git a/cli/create.go b/cli/create.go index d7e5abec8b..5067d53c41 100644 --- a/cli/create.go +++ b/cli/create.go @@ -56,6 +56,10 @@ var createCLICommand = cli.Command{ Value: "", Usage: "specify the file to write the process id to", }, + cli.BoolFlag{ + Name: "no-pivot", + Usage: "warning: this flag is meaningless to kata-runtime, just defined in order to be compatible with docker in ramdisk", + }, }, Action: func(context *cli.Context) error { runtimeConfig, ok := context.App.Metadata["runtimeConfig"].(oci.RuntimeConfig) diff --git a/cli/run.go b/cli/run.go index 86f4779f24..ceb22880e0 100644 --- a/cli/run.go +++ b/cli/run.go @@ -52,6 +52,10 @@ var runCLICommand = cli.Command{ Name: "detach, d", Usage: "detach from the container's process", }, + cli.BoolFlag{ + Name: "no-pivot", + Usage: "warning: this flag is meaningless to kata-runtime, just defined in order to be compatible with docker in ramdisk", + }, }, Action: func(context *cli.Context) error { runtimeConfig, ok := context.App.Metadata["runtimeConfig"].(oci.RuntimeConfig)