Search Header Logo

Docker basics

Authored by Akhilash K

Professional Development

Professional Development

Used 4+ times

Docker basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a Dockerfile?

Docker cannot be build images automatically by reading the instructions from a file called Dockerfile.

Docker can build audio automatically by reading the instructions from a file called Dockerfile.

Docker can build images automatically by reading the instructions from a file called Dockerfile.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How to build a Dockerfile?

$ docker build <path to docker file>

$ docker build to <path to docker file>

$ docker build in <path to docker file>

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Docker image is created with a series of read-only layers and layer in docker represents instructions on the Dockerfile of the image.

The hypervisor needs extensive hardware for proper function while docker is implemented on an actual operating system.

The hypervisor needs extensive software for proper function while docker is implemented on an actual hardware system.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Docker can build images automatically by reading the instructions from:

docker.config

docker.json

docker.yaml

Dockerfile

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the FROM instruction do in a Dockerfile?

FROM creates a layer from a base Docker image.

FROM specifies the creator of the image

FROM is an invalid instruction

FROM adds files from your Docker client’s current directory

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the COPY instruction do in a Dockerfile?

COPY makes a copy of your Dockerfile

COPY adds files from your Docker client’s current directory

COPY creates a copy of your running container

COPY creates a copy of your image

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which command is used for running the images as a container?

$ docker PS

Sudo docker run container name

$ Sudo docker run -i -t alpine /bin/bash

All of the above

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?

Discover more resources for Professional Development