mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +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", "",
|
||||
"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",
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user