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

- Free Preparation Discussions

Cisco Exam 300-910 Topic 15 Question 64 Discussion

Actual exam question for Cisco's 300-910 exam
Question #: 64
Topic #: 15
[All 300-910 Questions]

A developer is containerizing an application. The container "devnetprotf' has been run in detached mode to output the container ID with the command

Which command must be used to start an interactive Bash she m the running container?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Devorah
8 months ago
Hmm, good point. Although I have to say, 'devnetprod' is a pretty unfortunate container name. Sounds like something a dev would come up with. *chuckles*
upvoted 0 times
...
Doyle
8 months ago
Yeah, that makes sense. And using the container ID directly in the command is the way to go, rather than the container name, since the name 'devnetprod' isn't unique.
upvoted 0 times
Gretchen
8 months ago
D) docker run -it 1b487caec32a /bin/bash
upvoted 0 times
...
Nancey
8 months ago
Great reminder to always use the container ID for accuracy.
upvoted 0 times
...
Karl
8 months ago
A) docker exec -it 1b487caec32a /bin/bash
upvoted 0 times
...
Louis
8 months ago
Agreed, but using the container ID directly is safer in this case.
upvoted 0 times
...
Tamesha
8 months ago
B) docker exec -it devnetprod /bin/bash
upvoted 0 times
...
Levi
8 months ago
Exactly, using the container ID is more reliable than the name.
upvoted 0 times
...
Elmira
8 months ago
A) docker exec -it 1b487caec32a /bin/bash
upvoted 0 times
...
...
Martin
8 months ago
I agree with you on A. The question specifically says the container is already running in detached mode, so we need to use the 'exec' command to get into it, rather than starting a new container with 'run'.
upvoted 0 times
...
Rusty
8 months ago
Okay, let's think this through. We're being asked about starting an interactive Bash shell in a running container, and the container ID is provided. I'm thinking the correct answer is A, since that command uses 'exec' to interact with the running container rather than starting a new one.
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