BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 305-300 Topic 1 Question 13 Discussion

Actual exam question for LPI's 305-300 exam
Question #: 13
Topic #: 1
[All 305-300 Questions]

If a Dockerfile contains the following lines:

WORKDIR /

RUN cd /tmp

RUN echo test > test

where is the file test located?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Cristal
4 months ago
Interesting point, That makes sense too.
upvoted 0 times
...
German
5 months ago
Actually, I think the file test is located in /tmp/test on the system running docker build.
upvoted 0 times
...
Cristal
5 months ago
I agree with the WORKDIR is / so the file should be in /test.
upvoted 0 times
...
Mattie
5 months ago
But the WORKDIR is set to /, wouldn't that affect the file location?
upvoted 0 times
...
German
6 months ago
No, I believe it's in /test within the container image.
upvoted 0 times
...
Mattie
6 months ago
I think the file test is located in /tmp/test.
upvoted 0 times
...
Tequila
7 months ago
E) test in the directory holding the Dockerfile.
upvoted 0 times
...
Thurman
7 months ago
A) /ting/test within the container image.
upvoted 0 times
...
Francine
7 months ago
D) /tmp/test on the system running docker build.
upvoted 0 times
...
Christene
7 months ago
Where is the file test located?
upvoted 0 times
...

Save Cancel