-
Story
-
Resolution: Won't Do
-
Minor
-
None
-
DO188 - RHOCP4.18-en-3-20250829
-
False
-
-
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: