What is the core functionality of Docker?
Compiling code into executable programs
Automating software deployments
Building and running applications in isolated environments
Managing virtual machines
What does the '-d' flag do when running a Docker container?
Downloads the latest image from the repository.
Displays the container's logs in the terminal.
Deletes the container after it stops.
Runs the container in detached mode (background).
Which Dockerfile instruction is used to define the base image for a new Docker image?
RUN
FROM
COPY
WORKDIR
What is the role of the Docker Client in the Docker architecture?
It builds and runs the Docker containers.
It provides a user interface for interacting with the Docker Daemon.
It manages the Docker images and containers.
It stores and distributes Docker images.
How do you list all running Docker containers?
docker images
docker ps -a
docker ps
docker run -it
You want to see a list of all running containers. Which command do you use?
docker run
docker exec
If you launch a container with '--network none' and later need to give it network access, what should you do?
Restart the container with the desired network mode specified
Use the 'docker network connect' command to attach the container to an existing network
You cannot change the network mode once a container is created, you must recreate it
Modify the container's configuration files to add network settings
In Docker's default bridge network, how do containers get assigned IP addresses?
Dynamically from the bridge network's built-in DHCP server
Randomly generated at container startup
Dynamically from the Docker host's DHCP server
Statically from a configuration file
Which command is used to create and start a Docker container?
docker start
docker create
docker build
What is a Docker image essentially composed of?
A collection of files and configuration needed to run an application
A compiled binary executable
A snapshot of your computer's current state
A virtual machine image