Which Dockerfile instruction sets the base image for a build?
Docker Fundamentals
Question · Easy
What is the difference between the COPY and ADD instructions in a Dockerfile?
What is the purpose of the RUN instruction in a Dockerfile?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
What is the difference between CMD and ENTRYPOINT in a Dockerfile?
Question · Medium
What does the EXPOSE instruction in a Dockerfile do?
What command builds a Docker image from a Dockerfile in the current directory and tags it as 'myapp:1.0'?
What is a multi-stage Dockerfile build and what is its primary benefit?
Which Docker command removes all stopped containers, unused networks, dangling images, and build cache?
What is the default network driver used when you create a container without specifying a network?
Networking
What is the key difference between the 'host' network driver and the 'bridge' network driver?
What Docker network driver is used to enable multi-host container communication in a Docker Swarm?
What is the purpose of the 'macvlan' Docker network driver?
Which Docker command publishes container port 8080 to host port 80?
What is a Docker volume and how does it differ from a bind mount?
Storage
What is a 'tmpfs' mount in Docker used for?
Which command creates a named Docker volume called 'mydata'?
What is Docker Swarm?
Swarm
In Docker Swarm, what is the difference between a 'manager' node and a 'worker' node?
What is the minimum number of manager nodes required to maintain quorum in a Docker Swarm with fault tolerance for 1 manager failure?
Which command deploys a Docker Compose file as a Swarm stack?
In Docker Swarm, what is a 'service' and how does it differ from a 'task'?
What does 'docker service scale web=5' do in Docker Swarm?
What is Docker Content Trust (DCT) and what does it prevent?
Security
What is Docker UCP (Universal Control Plane)?
What is the purpose of a '.dockerignore' file?
What does 'docker exec -it mycontainer bash' do?
What is a Docker registry and how does Docker Hub relate to it?
Registries
What command tags an existing image 'myapp:latest' to push it to a private registry at 'registry.example.com:5000'?
Which Docker Swarm command promotes a worker node to a manager?
What is Docker's default logging driver?
What does 'docker inspect <container>' return?
What is the purpose of the '--no-cache' flag in 'docker build --no-cache'?
In Docker Compose, what does the 'depends_on' key ensure?
What does 'docker run --rm myimage' do?
What is the Docker daemon (dockerd) responsible for?
What is the purpose of Docker secrets in Swarm mode?
What is the difference between 'docker stop' and 'docker kill'?
What does the HEALTHCHECK instruction in a Dockerfile do?
In Docker Swarm, what is the 'ingress' network used for?
What is the correct syntax to set an environment variable 'DEBUG=true' when running a container?
What is a Docker image layer and how does layer caching speed up builds?
What Docker Swarm mode is used to run exactly one task per eligible node in the cluster?
Which command displays real-time resource usage statistics for all running containers?
What is the purpose of 'docker network connect <network> <container>'?
What does 'docker service update --image myapp:2.0 myservice' do in Swarm?
What is the purpose of the ARG instruction in a Dockerfile?
What is the difference between 'docker run' and 'docker start'?
Loading more…