client, ctr: allow specifying unmanaged rootfs dir

e.g. ctr run -t --rm --rootfs /tmp/busybox-rootfs foo /bin/sh
(--rm removes the container but does not remove rootfs dir, of course)

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2017-07-13 09:53:32 +00:00
parent 1a054c67b1
commit 752d253f40
3 changed files with 74 additions and 56 deletions

View File

@@ -47,7 +47,7 @@ func withMounts(context *cli.Context) containerd.SpecOpts {
var runCommand = cli.Command{
Name: "run",
Usage: "run a container",
ArgsUsage: "IMAGE CONTAINER [COMMAND] [ARG...]",
ArgsUsage: "Image|RootFS ID [COMMAND] [ARG...]",
Flags: append([]cli.Flag{
cli.BoolFlag{
Name: "tty,t",