Ah, I see now. The WORKDIR sets the working directory, but the RUN cd /tmp command doesn't actually change the working directory for the subsequent RUN command. The test file will be located at /test within the container image. Nice!
I think I've got it! The WORKDIR sets the working directory to /, and the RUN echo test > test command creates the test file in the / directory. So the correct answer is /test within the container image.
Wait, I'm a bit confused. If the WORKDIR is set to /, then the RUN cd /tmp command shouldn't change the working directory, right? I'm not sure where the test file is located.
Okay, let's see. The WORKDIR command sets the working directory to /, and then the RUN cd /tmp command changes the directory to /tmp. So the test file should be in /tmp, right?
Haha, the file test is actually located in the secret dimension of the container, where it will only be visible to the chosen ones. All the other options are mere distractions!
I'm pretty sure the file test is located in /test within the container image. The WORKDIR command should have set the working directory to / before running the RUN commands.
Option D is correct. The RUN cd /tmp command changes the directory to /tmp, but it doesn't change the working directory. So, the file test is created in /tmp/test on the system running the Docker build.
The file test is located in /tmp/test within the container image. The WORKDIR command sets the working directory to /, and the RUN cd /tmp command changes the directory to /tmp before running echo test > test.
Shawnda
3 months agoMartha
3 months agoJoni
3 months agoStevie
4 months agoAn
4 months agoLisbeth
4 months agoMelodie
4 months agoJacinta
4 months agoGabriele
5 months agoFiliberto
5 months agoShala
5 months agoAlayna
5 months agoKate
5 months agoKing
5 months agoNieves
1 year agoMicaela
1 year agoLenita
1 year agoRaelene
1 year agoJohana
1 year agoJacquline
1 year agoPrincess
1 year agoDelisa
1 year agoLevi
1 year agoIzetta
1 year agoTasia
1 year agoShelba
1 year agoClaribel
1 year agoVicente
1 year agoArthur
1 year agoJuan
1 year agoHerman
1 year agoSerina
1 year agoMirta
1 year ago