Last active
April 6, 2024 16:57
-
-
Save PetrGlad/d2955348a7c5afb55c9226789cd0f4e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo "ertyoiu" | podman secret create asdf - | |
c680db24d26dc024f36f90e90 | |
$ podman secret ls | |
ID NAME DRIVER CREATED UPDATED | |
c680db24d26dc024f36f90e90 asdf file 5 seconds ago 5 seconds ago | |
$ podman run --rm -ti --secret asdf alpine | |
/ # ls /var/run/secrets/ | |
asdf | |
/ # ls /var/run/secrets/asdf | |
/var/run/secrets/asdf | |
/ # cat /var/run/secrets/asdf | |
ertyoiu | |
/ # export SECRET_VALUE=$(cat /var/run/secrets/asdf) | |
/ # echo $SECRET_VALUE | |
ertyoiu | |
/ # | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment