A Podman secret named 'db_password' has been created. How is this secret made accessible inside a running container?
Trap 1: podman run --env SECRET=db_password myapp
This treats 'db_password' as a literal string value rather than a secret object.
Trap 2: podman run --inject-secret db_password myapp
There is no '--inject-secret' flag.
Trap 3: podman run --use-secret db_password myapp
'--use-secret' is not a valid Podman flag.
- A
podman run --secret db_password,type=mount myapp
The --secret flag mounts or injects the secret into the container.
- B
podman run --env SECRET=db_password myapp
Why it fails: This treats 'db_password' as a literal string value rather than a secret object.
- C
podman run --inject-secret db_password myapp
Why it fails: There is no '--inject-secret' flag.
- D
podman run --use-secret db_password myapp
Why it fails: '--use-secret' is not a valid Podman flag.