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

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77