podman: add --creds and --cert-dir to create/run

Add --creds flag to podman create and podman run commands to support
registry authentication during image pulling.

Without this flag, users must perform a separate `podman pull
--creds/--cert-dir` first and then remember to specify `--pull=never`.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2025-07-25 12:36:04 +02:00
parent eabb64ddaf
commit 7f2908afcf
8 changed files with 70 additions and 2 deletions

View File

@ -1,5 +1,5 @@
####> This option file is used in:
####> podman artifact pull, artifact push, build, container runlabel, farm build, image sign, kube play, login, manifest add, manifest push, pull, push, search
####> podman artifact pull, artifact push, build, container runlabel, create, farm build, image sign, kube play, login, manifest add, manifest push, pull, push, run, search
####> If file is edited, make sure the changes
####> are applicable to all of those.
#### **--cert-dir**=*path*

View File

@ -1,5 +1,5 @@
####> This option file is used in:
####> podman artifact pull, artifact push, build, container runlabel, farm build, kube play, manifest add, manifest push, pull, push, search
####> podman artifact pull, artifact push, build, container runlabel, create, farm build, kube play, manifest add, manifest push, pull, push, run, search
####> If file is edited, make sure the changes
####> are applicable to all of those.
#### **--creds**=*[username[:password]]*

View File

@ -83,6 +83,8 @@ and specified with a _tag_.
@@option cap-drop
@@option cert-dir
@@option cgroup-conf
@@option cgroup-parent
@ -113,6 +115,8 @@ and specified with a _tag_.
@@option cpuset-mems
@@option creds
@@option decryption-key
@@option device

View File

@ -102,6 +102,8 @@ and specified with a _tag_.
@@option cap-drop
@@option cert-dir
@@option cgroup-conf
@@option cgroup-parent
@ -132,6 +134,8 @@ and specified with a _tag_.
@@option cpuset-mems
@@option creds
@@option decryption-key
#### **--detach**, **-d**