Adds example for secret creation from environment variable

Signed-off-by: Brett Calliss <brett@obligatory.email>
This commit is contained in:
Brett Calliss
2024-02-24 18:54:44 +11:00
parent e4719cb7cd
commit 3b127286a7

View File

@ -94,8 +94,14 @@ Create gpg encrypted secret based on local file using the pass driver.
$ podman secret create --driver=pass my_secret ./secret.txt.gpg
```
Create a secret from an environment variable called 'MYSECRET'.
```
$ podman secret create --env=true my_secret MYSECRET
```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-secret(1)](podman-secret.1.md)**, **[podman-login(1)](podman-login.1.md)**
## HISTORY
January 2021, Originally compiled by Ashley Cui <acui@redhat.com>
February 2024, Added example showing secret creation from an environment variable by Brett Calliss <brett@obligatory.email>