Document override-arch and override-os

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2020-08-24 15:45:31 -04:00
parent e3edb7ba9d
commit f49b98c610
7 changed files with 22 additions and 13 deletions

View File

@ -323,13 +323,11 @@ func GetCreateFlags(cf *ContainerCLIOpts) *pflag.FlagSet {
"override-arch", "", "override-arch", "",
"use `ARCH` instead of the architecture of the machine for choosing images", "use `ARCH` instead of the architecture of the machine for choosing images",
) )
// markFlagHidden(createFlags, "override-arch")
createFlags.StringVar( createFlags.StringVar(
&cf.OverrideOS, &cf.OverrideOS,
"override-os", "", "override-os", "",
"use `OS` instead of the running OS for choosing images", "use `OS` instead of the running OS for choosing images",
) )
// markFlagHidden(createFlags, "override-os")
createFlags.String( createFlags.String(
"pid", "", "pid", "",
"PID namespace to use", "PID namespace to use",

View File

@ -66,9 +66,6 @@ func createFlags(flags *pflag.FlagSet) {
_ = flags.MarkHidden("env-host") _ = flags.MarkHidden("env-host")
_ = flags.MarkHidden("http-proxy") _ = flags.MarkHidden("http-proxy")
} }
// Not sure we want these exposed yet. If we do, they need to be documented in man pages
_ = flags.MarkHidden("override-arch")
_ = flags.MarkHidden("override-os")
} }
func init() { func init() {

View File

@ -70,10 +70,8 @@ func runFlags(flags *pflag.FlagSet) {
_ = flags.MarkHidden("http-proxy") _ = flags.MarkHidden("http-proxy")
_ = flags.MarkHidden("preserve-fds") _ = flags.MarkHidden("preserve-fds")
} }
// Not sure we want these exposed yet. If we do, they need to be documented in man pages
_ = flags.MarkHidden("override-arch")
_ = flags.MarkHidden("override-os")
} }
func init() { func init() {
registry.Commands = append(registry.Commands, registry.CliCommand{ registry.Commands = append(registry.Commands, registry.CliCommand{
Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode}, Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},

View File

@ -1980,12 +1980,15 @@ _podman_manifest_remove() {
_podman_pull() { _podman_pull() {
local options_with_args=" local options_with_args="
--authfile --authfile
--creds
--cert-dir --cert-dir
--creds
--override-arch
--override-os
" "
local boolean_options=" local boolean_options="
--all-tags --all-tags
-a -a
--disable-content-trust
--help --help
-h -h
--quiet --quiet
@ -2160,6 +2163,8 @@ _podman_container_run() {
--no-healthcheck --no-healthcheck
--no-hosts --no-hosts
--oom-score-adj --oom-score-adj
--override-arch
--override-os
--pid --pid
--pids-limit --pids-limit
--pod --pod

View File

@ -599,6 +599,12 @@ Whether to disable OOM Killer for the container or not.
Tune the host's OOM preferences for containers (accepts -1000 to 1000) Tune the host's OOM preferences for containers (accepts -1000 to 1000)
**--override-arch**=*ARCH*
Override the machine's default architecture of the image to be pulled. For example, `arm`.
**--override-os**=*OS*
Use OS instead of the running OS for choosing images
**--pid**=*pid* **--pid**=*pid*
Set the PID mode for the container Set the PID mode for the container

View File

@ -79,13 +79,12 @@ This is a Docker specific option to disable image verification to a Docker
registry and is not supported by Podman. This flag is a NOOP and provided registry and is not supported by Podman. This flag is a NOOP and provided
solely for scripting compatibility. solely for scripting compatibility.
**--override-arch**=*ARCH*
Override the machine's default architecture of the image to be pulled. For example, `arm`.
**--override-os**=*OS* **--override-os**=*OS*
Use OS instead of the running OS for choosing images Use OS instead of the running OS for choosing images
**--override-arch**=*ARCH*
Override the machine's default architecture of the image to be pulled. For example, `arm`.
**--quiet**, **-q** **--quiet**, **-q**
Suppress output information when pulling images Suppress output information when pulling images

View File

@ -608,6 +608,12 @@ Whether to disable OOM Killer for the container or not.
Tune the host's OOM preferences for containers (accepts values from **-1000** to **1000**). Tune the host's OOM preferences for containers (accepts values from **-1000** to **1000**).
**--override-arch**=*ARCH*
Override the machine's default architecture of the image to be pulled. For example, `arm`.
**--override-os**=*OS*
Use OS instead of the running OS for choosing images
**--pid**=*mode* **--pid**=*mode*
Set the PID namespace mode for the container. Set the PID namespace mode for the container.