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