From e8968c867f7af21f9e5eec661f7e057a74127511 Mon Sep 17 00:00:00 2001 From: LStandman <65296484+LStandman@users.noreply.github.com> Date: Sat, 12 Feb 2022 13:45:49 +0200 Subject: Add support for --chrootdirs Signed-off-by: LStandman <65296484+LStandman@users.noreply.github.com> --- cmd/podman/common/create.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cmd/podman') diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index 634b49db7..f3e2e4d6d 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -631,6 +631,14 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, "Write the container process ID to the file") _ = cmd.RegisterFlagCompletionFunc(pidFileFlagName, completion.AutocompleteDefault) + chrootDirsFlagName := "chrootdirs" + createFlags.StringSliceVar( + &cf.ChrootDirs, + chrootDirsFlagName, []string{}, + "Chroot directories inside the container", + ) + _ = cmd.RegisterFlagCompletionFunc(chrootDirsFlagName, completion.AutocompleteDefault) + if registry.IsRemote() { _ = createFlags.MarkHidden("env-host") _ = createFlags.MarkHidden("http-proxy") -- cgit v1.2.3-54-g00ecf