Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-14327

Missing explanation of secret in env use case

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)
    • AppDev Sprint May16 - May29

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/do188-4.14/pages/ch04s03
      Reporter RHNID: atcorduneanu@extraordy.com
      Section Title: Build Images with Advanced Containerfile Instructions
                                                                             

      Issue description

      The section describes the podman secrets feature and how it is used.
      Since also podman's documentation is vague about the usage of secrets, I think it would have value to specify here the possible options of running a container with secrets.

      The section describes how to mount a secret as a file under /run/secrets inside the container, but secrets are more useful/used as environment variables.

      Steps to reproduce:

      podman run --name test-container --secret=mysecret,type=env,target=MY_SECRET localhost/testimage

      Workaround:

      .

      Expected result:

      I would expect to see the procedure of running a container with a secret as an environment variable.

              rht-eramirez Eduardo Ramirez
              atcorduneanu@extraordy.com Andrei Tudor Corduneanu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: