Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco Exam 200-901 Topic 6 Question 89 Discussion

Actual exam question for Cisco's 200-901 exam
Question #: 89
Topic #: 6
[All 200-901 Questions]

A development team needs to containerize an application named 'cust475605674\ A Dockerfile has been created and now the docker build command needs to be run using the current folder to find the Dockerfile. build the image and create a local repository named 'cust321453857-rep' that points to that image. Which command must be used?

Show Suggested Answer Hide Answer
Suggested Answer: A

To build a Docker image using the current folder and a specified Dockerfile, and then tag the image with a specific name for the local repository, the following command is used:

docker build: This command builds a Docker image from a Dockerfile.

-t cust321453857-rep: The -t option tags the resulting image with the specified name (cust321453857-rep).

-f Dockerfile: The -f option specifies the Dockerfile to use for building the image.

Command:

docker build -t cust321453857-rep -f Dockerfile .


Docker Build Command: Docker Build

Contribute your Thoughts:

Arlene
7 months ago
Option A is the way to go. If you're not using the -t flag, how are you supposed to show off your mad Docker skills at the next team meeting?
upvoted 0 times
...
Kanisha
7 months ago
I'm going with A as well. Gotta love those straightforward Docker commands, am I right? It's like a secret language that only the true DevOps masters understand.
upvoted 0 times
...
Dulce
7 months ago
Definitely option A. It's the only one that makes sense. The other options either have the wrong flags or the wrong file name. This is a no-brainer, folks.
upvoted 0 times
Nell
6 months ago
Yes, option A is the only one that includes the tag and the correct file name.
upvoted 0 times
...
Natalya
6 months ago
I agree, option A is the way to go. The other options are not correct.
upvoted 0 times
...
Percy
7 months ago
Option A is the correct one. It specifies the tag and the Dockerfile.
upvoted 0 times
...
...
Leatha
7 months ago
Option A seems to be the way to go. I mean, who wants to name their Dockerfile 'Dockerfile.txt'? That's just asking for trouble!
upvoted 0 times
Denny
6 months ago
Allene: Agreed, let's use docker build -t cust321453857-rep -f Dockerfile.
upvoted 0 times
...
Justine
7 months ago
User 3: Let's go with option A then.
upvoted 0 times
...
Allene
7 months ago
User 2: Yeah, naming it 'Dockerfile.txt' seems like a bad idea.
upvoted 0 times
...
Marshall
7 months ago
User 1: I agree, option A is the best choice.
upvoted 0 times
...
...
Ronny
7 months ago
I think the correct answer is A. The command 'docker build -t cust321453857-rep -f Dockerfile' will build the image and create a local repository named 'cust321453857-rep' that points to that image. The -t flag is used to tag the image with a name, and the -f flag specifies the location of the Dockerfile.
upvoted 0 times
Dottie
7 months ago
Let's go ahead and run 'docker build -t cust321453857-rep -f Dockerfile' to containerize the application.
upvoted 0 times
...
Paola
7 months ago
Yes, using the -t flag to tag the image and -f flag to specify the Dockerfile location is the right approach.
upvoted 0 times
...
Ronnie
7 months ago
I agree, option A is the correct command to use.
upvoted 0 times
...
...
Gilberto
8 months ago
I agree with Fallon, option A makes sense because it specifies the tag and the Dockerfile.
upvoted 0 times
...
Fallon
8 months ago
I think the answer is A.
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