mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Document override-arch and override-os
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -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",
|
||||||
|
@ -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() {
|
||||||
|
@ -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},
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
Reference in New Issue
Block a user