Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco 200-901 Exam - Topic 5 Question 49 Discussion

A developer has created a new image to use in a Docker build and has added a tag for the image by using the command:$ docker tag 84fe411926287 local/app:0.4Which command must be executed next to build the Docker image using the tag?
D) $ docker build -t local/app:0.4
A) $ docker build -p local/app:0.4
B) $ docker run -t local/app:0.4
C) $ docker run -p local/app:0.4

Cisco 200-901 Exam - Topic 5 Question 49 Discussion

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

A developer has created a new image to use in a Docker build and has added a tag for the image by using the command:

$ docker tag 84fe411926287 local/app:0.4

Which command must be executed next to build the Docker image using the tag?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Graham
10 months ago
D makes sense, but I always mix up build and run commands!
upvoted 0 times
...
Levi
10 months ago
I thought you just run the image after tagging, not build it again.
upvoted 0 times
...
Antonio
10 months ago
Wait, isn't it confusing with all these options?
upvoted 0 times
...
Leonida
11 months ago
Totally agree, D is the way to go!
upvoted 0 times
...
Justine
11 months ago
The correct command is D, you need -t to tag the image.
upvoted 0 times
...
Galen
11 months ago
I thought -p was for port mapping when running a container, not for building. So, I guess it has to be -t for the build command.
upvoted 0 times
...
Larae
11 months ago
I feel like I might confuse build and run commands. I hope I remember that build needs -t, but I could be wrong.
upvoted 0 times
...
Frederick
11 months ago
I remember practicing a similar question where we had to tag and then build an image. I think it was definitely -t for the tag.
upvoted 0 times
...
Camellia
11 months ago
I think the command to build the image should start with "docker build," but I'm not sure if it's -p or -t.
upvoted 0 times
...
Shalon
11 months ago
Okay, the error seems to be related to the GitLab CI/CD pipeline execution. I'm leaning towards option C - installing the missing Python libraries via pip3 might be the way to go.
upvoted 0 times
...
Nu
11 months ago
Okay, I've got this. The Settings portlet is where users can customize their personal preferences, so the correct answers are probably things like changing their password and personalizing their dashboard.
upvoted 0 times
...

Save Cancel