Skip to content

Commit

Permalink
ociplex: Implement the spec subcommand
Browse files Browse the repository at this point in the history
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 <dinechin@redhat.com>
  • Loading branch information
c3d committed Mar 9, 2023
1 parent 40d1733 commit afe5b15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/ociplex/src/backend/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit afe5b15

Please sign in to comment.