Week 4 Quiz 2

¡Supera tus tareas y exámenes ahora con Quizwiz!

Docker is less efficient than VMs. but easier so we use it for deployments • True • False

• False

Adding the -d switch when running a docker image results in • The imagine being deleted after running. • The image being downloaded and run from a repository, but the local image being immediately deleted. • Running detached from the console, preventing it from blocking console access. • -d is not a valid switch for running a docker image. •

• Running detached from the console, preventing it from blocking console access. •

Layers in Docker allow us to cache commands from a Dockerfile and minimize downloading from remote storage • True • False •

• True •

You can run a container image with only its name, as long as it exists in DockerHub or connected repository • True • False •

• True •

What command would you use to create an image using a Dockerfile? • docker build -t my-image • docker create -t my-image /user • docker build -t • docker build .

• docker build .

Which of the following are Docker commands • docker execute • docker image build • docker container run • docker controller create

• docker image build • docker container run

Docker is only usable with Java applications • true • false

• false

Docker only runs on Linux machines • true • false

• false

When running a container in Docker, how do you map the container's port 8080 to a local port 4040? • -p 4040:8080 • -port 8080:4040 • -p 8080:4040 • -port 4040:8080

• -p 4040:8080

What is Docker? • A version control tool • A build automation tool • An automation server • A container manager tool

• A container manager tool

The following Docker command: docker exec -it container_id bash is used to: • Activate default VM machine • Access a running container • Build an image • Commit changes done in a Docker image •

• Access a running container •

Which Dockerfile command can be used to move files from the local directory into the container's directory? • COPY • MOVE • PUT • PLACE •

• COPY •

Which of the following are true for a Container? • Containers are created from images. • Containers are created from VMs. • Containers have the full guest OS. • There can be multiple containers of a single image.

• Containers are created from images. • There can be multiple containers of a single image.

________ is a tool for defining and running multi-container Docker applications. • Docker Swarm • Docker Hub • Docker Cloud • Docker Compose

• Docker Compose

________ is a cloud-hosted service from Docker that provides registry capabilities for public and private content. • Docker Swarm • Docker Hub • Docker Cloud • Docker Compose •

• Docker Hub •

Which of the following commands in a Dockerfile exposes the application in the container on a specific port? • EXPOSE • PORT • RUN • FROM

• EXPOSE

There can be only one container for a docker image. • TRUE • FALSE

• FALSE

Using Docker, we are able to create containers which are each able to run independent applications. Each container's process runs on guest OS on top of a linux host OS. • TRUE • FALSE

• FALSE

Which Dockerfile command is generally the first command in the file • ADD • CMD • FROM • TO •

• FROM •


Conjuntos de estudio relacionados

Prep U Ch. 29 Management of Patients With Complications from Heart Disease

View Set

Exam Review Questions Chapter 4 - infection Control: Principles and Practices

View Set

HUN1201 - Chapter 11 Quiz Review

View Set