Docker Flashcards
A container is a runtime instance of an i_._.
A container is a runtime instance of an image
A c________ is a runtime instance of an image
A container is a runtime instance of an image
C________s package software into standardized units
Containers package software into standardized units
H________s are software that manages physical resources on a server
Hypervisors are software that manages physical resources on a server
The major benefit of containers is that you can ship and run applications everywhere because containers b________ everything that the application needs to run.
The major benefit of containers is that you can ship and run applications everywhere because containers bundle everything that the application needs to run.
The docker d_____ is a process running in the background that is responsible for managing containers, images, networks, and volumes.
The docker daemon is a process running in the background that is responsible for managing containers, images, networks, and volumes.
The docker clients (docker desktop or docker CLI) communicate with the docker d_____ to perform actions on or with containers.
The docker clients (docker desktop or docker CLI) communicate with the docker daemon to perform actions on or with containers.
Docker images can be stored in r________s in the cloud via DockerHub
Docker images can be stored in registries in the cloud via DockerHub
When a container is launched, it gets one final layer called the w________ layer that is used for local storage
When a container is launched, it gets one final layer called the writable layer that is used for local storage
When two containers are launched from the same image, this w________ layer is what distinguishes them from one another.
When two containers are launched from the same image, this writable layer is what distinguishes them from one another.
The writable layer is not p________ and is lost between starts and stops.
The writable layer is not persistent and is lost between starts and stops.
docker images are r____-only and i________able
docker images are read-only and immutable
Docker supports a temporary filesystem called t____s, which is stored in memory (RAM)
Docker supports a temporary filesystem called tmpfs which is stored in memory (RAM)
B____ m____ maps a host folder to a container folder, allowing the container to access files on the host.
Bind mount maps a host folder to a container folder, allowing the container to access files on the host.
V_____s are persistent storage that are managed by docker but utilize the host machine. They allow you to create persistence storage that exists outside of the lifecycle of an individual container.
Volumes are persistent storage that are managed by docker but utilize the host machine. They allow you to create persistence storage that exists outside of the lifecycle of an individual container.
Containers on the same b____ network can communicate with one another but can’t be reached from outside the docker host without port publishing.
Containers on the same bridge network can communicate with one another but can’t be reached from outside the docker host without port publishing.
P____ p____ing maps a host port to a container port on the bridge network. This allows requests made to the host port to access the container port and the running process within it.
Port publishing maps a host port to a container port on the bridge network. This allows requests made to the host port to access the container port and the running process within it.
by utilizing a b_____ network, multiple containers can share the same port number. However, to make them accessible from outside the internal network, the port must be mapped to unique and unused ports on the host machine.
by utilizing a bridge network, multiple containers can share the same port number. However, to make them accessible from outside the internal network, the port must be mapped to unique and unused ports on the host machine.
C____s can be connected to a bridge network. Each container gets a unique, private __ address on this network. Each container can use the same p___ because the IP is unique
Containers can be connected to bridge network
Each container gets a unique, private IP address on this network. Each container can use the same port because the IP is unique
By using bridge networking and publishing containers, we can publish the same container to different host p____s
By using bridge networking and publishing containers, we can publish the same container to different host ports
I___ is pre-cooked, frozen treat.
C____ is the delicious treat.
Image is pre-cooked, frozen treat.
Container is the delicious treat.
the Docker engine will take care of turning the immutable files called i____s into c_____s.
the Docker engine will take care of turning the immutable files called images into containers.
If we do not specify a W_____, we risk overwriting important files by accident
If we do not specify a WORKDIR, we risk overwriting important files by accident
This is a critical thing to keep in mind when we build our images. It’s best to do most things, such as to run npm install during the build process i_____ the container rather than doing those prior to building.
This is a critical thing to keep in mind when we build our images. It’s best to do most things, such as to run npm install during the build process inside the container rather than doing those prior to building.
(Instead of using npm install, npm offers a much better tool for installing dependencies, the ci command)