The Complete Practical Docker Guide - Starting Additional Processes in the Running Container

The Complete Practical Docker Guide - Starting Additional Processes in the Running Container

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explains how to interact with a MongoDB process within a Docker container. It covers creating additional processes using the Docker exec command, connecting to a Bash shell interactively, and listing processes running inside the container. The tutorial emphasizes the importance of understanding these operations and provides a brief introduction to Docker entrypoint scripts.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default port number for MongoDB?

27017

5432

8080

3306

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to run a command in a running Docker container?

docker exec

docker start

docker run

docker stop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you do not connect to STDIN when starting a Bash process in a container?

The process starts a new container

The process waits for input

The process exits immediately

The process runs in the background

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which options should be added to Docker exec to connect interactively to a Bash process?

-d -p

-i -t

-a -b

-x -y

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process ID of the root process in a Docker container?

0

1

100

113

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many processes were running inside the container after starting the C shell process?

2

3

4

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to list all processes running inside a Docker container?

docker list

docker status

docker ps

ps -e

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?