Fix run with specified platform
Adds the platform flag to the run command and resolves the image based on that platform. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
@@ -115,6 +115,10 @@ var Command = cli.Command{
|
||||
Name: "cgroup",
|
||||
Usage: "cgroup path (To disable use of cgroup, set to \"\" explicitly)",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "platform",
|
||||
Usage: "run image for specific platform",
|
||||
},
|
||||
}, append(platformRunFlags, append(commands.SnapshotterFlags, commands.ContainerFlags...)...)...),
|
||||
Action: func(context *cli.Context) error {
|
||||
var (
|
||||
|
Reference in New Issue
Block a user