From afe5b15e06c3b60b3cdcd3c607387113d44a8ff5 Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Sat, 4 Mar 2023 01:30:08 +0100 Subject: [PATCH] ociplex: Implement the spec subcommand Pass the options for the spec subcommand, as documented in https://github.com/opencontainers/runc/blob/main/man/runc-spec.8.md Signed-off-by: Christophe de Dinechin --- crates/ociplex/src/backend/cli.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/ociplex/src/backend/cli.rs b/crates/ociplex/src/backend/cli.rs index 021ef4981..e66dedc5d 100644 --- a/crates/ociplex/src/backend/cli.rs +++ b/crates/ociplex/src/backend/cli.rs @@ -524,6 +524,15 @@ impl Backend for CliBackend { backargs.push("spec".into()); + if let Some(path) = args.bundle { + backargs.push("--bundle".into()); + backargs.push(path.into_os_string()) + } + + if args.rootless { + backargs.push("--rootless".into()) + } + self.invoke(backargs) } }