XMLWordPrintable

    • Icon: Story Story
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • DO188 - RHOCP4.18-en-3-20250829
    • DO188
    • False
    • Hide

      None

      Show
      None
    • False
    • 4
    • 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: 

      Would be nice to mention this, since can be very confusing.

      The following works ok:
      ~~~
      FROM ubi9/ubi
      ENTRYPOINT ["sleep"]
      CMD ["infinity"]
      ~~~

      The following does NOT work ! When ENTRYPOINT is in shell form, the CMD instruction is completely ignored.
      ~~~
      FROM ubi9/ubi
      ENTRYPOINT sleep
      CMD infinity # ← NEVER EXECUTED !
      ~~~

       

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              gls-curriculum-ocp-adv@redhat.com PTL - AppDev Team
              chetan-rhls Chetan Tiwary
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: