exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 150 discussion

Actual exam question from Cisco's 350-901
Question #: 150
Topic #: 1
[All 350-901 Questions]

A local Docker container with a Container ID of 391441516e7a is running a Python application.
Which command is used to connect to a bash shell in the running container?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: A

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
moslig
Highly Voted 2 years, 8 months ago
option B connects a bash shell
upvoted 22 times
...
lente_kriebels
Highly Voted 2 years, 8 months ago
Correct answer is B
upvoted 12 times
...
al_mon
Most Recent 3 months, 1 week ago
docker exec -it 391441516e7a /bin/bash Explanation: docker exec: Used to execute a command in a running container. -it: Runs the command interactively and allocates a TTY (terminal). 391441516e7a: The ID of the running container. /bin/bash: Specifies that you want to open a Bash shell inside the container.
upvoted 1 times
...
Dave513
6 months, 3 weeks ago
Correct option is B!
upvoted 3 times
...
mariodevx
7 months, 1 week ago
docker exec: run a command in a running container e.g. sudo docker exec -ti <container_name> /bin/bash log in to the running container through an interactive shell https://github.com/etture/dev_notes/issues/10
upvoted 2 times
...
Teringzooi
1 year, 7 months ago
Correct answer: B docker run -it <image name> <command> docker exec -it ubuntu_bash bash https://phase2.github.io/devtools/common-tasks/ssh-into-a-container/
upvoted 6 times
...
designated
1 year, 8 months ago
B is correct > docker exec -it ubuntu_bash bash
upvoted 5 times
...
ferock
2 years ago
B Next, execute an interactive bash shell on the container. docker exec -it ubuntu_bash bash https://docs.docker.com/engine/reference/commandline/exec/
upvoted 3 times
...
__al__
2 years, 2 months ago
B... no doubt!
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago