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", "",
"use `ARCH` instead of the architecture of the machine for choosing images",
)
// markFlagHidden(createFlags, "override-arch")
createFlags.StringVar(
&cf.OverrideOS,
"override-os", "",
"use `OS` instead of the running OS for choosing images",
)
// markFlagHidden(createFlags, "override-os")
createFlags.String(
"pid", "",
"PID namespace to use",

View File

@@ -66,9 +66,6 @@ func createFlags(flags *pflag.FlagSet) {
_ = flags.MarkHidden("env-host")
_ = 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() {

View File

@@ -70,10 +70,8 @@ func runFlags(flags *pflag.FlagSet) {
_ = flags.MarkHidden("http-proxy")
_ = 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() {
registry.Commands = append(registry.Commands, registry.CliCommand{
Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},

View File

@@ -1980,12 +1980,15 @@ _podman_manifest_remove() {
_podman_pull() {
local options_with_args="
--authfile
--creds
--cert-dir
--creds
--override-arch
--override-os
"
local boolean_options="
--all-tags
-a
--disable-content-trust
--help
-h
--quiet
@@ -2160,6 +2163,8 @@ _podman_container_run() {
--no-healthcheck
--no-hosts
--oom-score-adj
--override-arch
--override-os
--pid
--pids-limit
--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)
**--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*
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
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*
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**
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**).
**--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*
Set the PID namespace mode for the container.