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

DO188v4.18: ch04s03 : WORKDIR sets also the default path at runtime.

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • DO188 - RHOCP4.18-en-3-20250829
    • DO188
    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:


      URL: https://role.rhu.redhat.com/rol-rhu/app/courses/do188-4.18/pages/ch04s03 
      Reporter RHNID:  acancell@redhat.com   
      Section Title:   Build Images with Advanced Containerfile Instructions                                                                    

      Issue description:  

      WORKDIR sets also the default path at runtime.
      ~~~
      FROM registry.access.redhat.com/ubi9/ubi:9.5
      WORKDIR /opt
      CMD ["sleep","infinity"]
      ~~~
      $ podman build -t itest:1 -f Containerfile
      [... OK]

      $ podman run --rm --name ctest itest:1 pwd
      /opt

      This is useful to clarify the multisatge build later in this chapter 

       

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              asernabo@redhat.com Alejandro Serna-Borja
              chetan-rhls Chetan Tiwary
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: