Search Header Logo

Working with Docker Registries, Images and Containers

Authored by Khachatur Ashotyan

English, Computers, Professional Development

Professional Development

Used 2+ times

Working with Docker Registries, Images and Containers
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

You require access to a self-hosted registry. When must the --insecure-registry config option must be configured on the Docker daemon?

When the registry is being served from the loopback network.

When the registry uses a self-signed certificate for authentication.

When the registry is configured to receive API calls over plain HTTP.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

I have pulled the latest image to my machine and a new image is pushed to the registry, which now has the latest tag, what happens when I build a new container?

Docker will fetch the latest image with the latest tag and you will get an image that is based on the newer version.

Docker will reuse the already fetched image with the latest tag and you will get an image that is based on an old version.

It will not build the image.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If you have a registry that services images over http, what is that called?

Insecure registry

Web registry

http registry

Private registry

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why is the domain name of the registry important?

So users can easily use the registry API.

It's included in the image name

You have to configure the docker engine with it.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of a registry?

To store images.

To store dockerfiles.

To store containers.

To store compose files.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

You are required to containerize a NodeJS application. Which base image would you choose to use to derive your application image in order to ensure fitness for purpose and to minimize the size of the resultant image?

The official NodeJS image based on Alpine Linux from the Docker HUB registry, because Alpine Linux is highly optimized.

The official Ubuntu image from the Docker HUB registry, because it is the most popular image available.

The official NodeJS image based on Debian Wheezy from Docker HUB registry, because Debian has been around for more than 20 years.

Create your own NodeJS base image, because the content of the images from the Docker HUB registry cannot be trusted.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When authoring a Docker image using a multi-stage build, the final FROM instruction should be FROM scratch, in order to produce the smallest image possible. Is this good advice?

Sometimes - the base image for the final build stage should, ultimately, be an image that serves the purpose of the image being authored.

Never - the artifacts contained within an image will always have a need for the content of a filesystem, that is provided by base image.

Always - it's of the utmost importance to produce as small an image as is possible, whenever you author a Docker image.

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?