File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,11 @@ import (
1818var execCommand = cli.Command {
1919 Name : "exec" ,
2020 Usage : "execute new process inside the container" ,
21- ArgsUsage : `<container-id> <container command> [command options]
21+ ArgsUsage : `<container-id> <command> [command options] || -p process.json <container-id>
2222
2323Where "<container-id>" is the name for the instance of the container and
24- "<container command>" is the command to be executed in the container.
24+ "<command>" is the command to be executed in the container.
25+ "<command>" can't be empty unless a "-p" flag provided.
2526
2627EXAMPLE:
2728For example, if the container is configured to run the linux ps command the
@@ -86,7 +87,7 @@ following will output a list of processes running in the container:
8687 },
8788 },
8889 Action : func (context * cli.Context ) error {
89- if err := checkArgs (context , 2 , minArgs ); err != nil {
90+ if err := checkArgs (context , 1 , minArgs ); err != nil {
9091 return err
9192 }
9293 if os .Geteuid () != 0 {
You can’t perform that action at this time.
0 commit comments