Which of the following statements is TRUE about Docker containers?
They are slower than virtual machines.
They cannot interact with the host system.
They share the host operating system kernel.
They have their own dedicated operating system.
Which command completely removes a Docker container?
docker rm <container_id>
docker delete <container_id>
docker stop -r <container_id>
docker kill <container_id>
Which command is used to download a Docker image from a registry?
docker build
docker run
docker pull
docker push
What command will successfully remove a Docker image named 'my-app-image'?
docker rm my-app-image
docker delete my-app-image
docker rmi my-app-image
docker image rm my-app-image
What port does the Docker daemon typically listen on?
443
8080
2377
80
What is the primary purpose of Docker containers in software development?
To manage network infrastructure.
To compile code faster.
To create virtual machines.
To package and isolate applications with their dependencies.
What is the default network type used by Docker when creating a new container?
Overlay
Host
Bridge
None
Which command is used to create and start a Docker container?
docker start
docker create
What is the command to gracefully stop a running Docker container?
docker stop <container_id>
docker halt <container_id>
docker down <container_id>
Which instruction in a Dockerfile sets the working directory inside the image during the build process?
WORKDIR
ENV
COPY
RUN