Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
cli: add no-pivot flag to be compatible with docker in ramdisk
Browse files Browse the repository at this point in the history
This commit add a no-pivot flag (just a warning tip) in kata-runtime create and run cmd.

Fixes: #409 , #134

Signed-off-by: wenqi wang wangwenqi01@baidu.com
  • Loading branch information
wangwenqi committed Jun 20, 2018
1 parent 4f102f8 commit 6b496e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6b496e4

Please sign in to comment.