- What is Docker, and why is it used?
- Compare Docker with Virtual Machines.
- What is the difference between a Container and an Image?
- Which command is used to list all running containers?
- Which command is used to build a Docker image?
- How do you run a container from an image?
- What is a Dockerfile? What is its purpose?
- Explain the meaning of some basic Dockerfile instructions:
FROM,RUN,CMD,EXPOSE. - What is a Volume in Docker? Why is it needed?
- How do you remove an unused container or image?
Intermediate Level
- What is Docker Networking? What types of networks are available?
- Compare
bridge,host, andoverlaynetworks.
- Compare
- How do you check the logs of a running container?
- What is Docker Compose? When should you use Docker Compose?
- Which command is used to scale the number of containers in Docker Compose?
- How do you debug a container that fails to start?
- What is the difference between Bind Mount and Volume?
- Explain how
docker buildworks and why caching is important. - What is the Docker Restart Policy? What types of policies are available?
- How do you pass environment variables into a container?
- Explain the process of removing all unnecessary containers, images, and volumes.
Advanced Level
- What is Docker Swarm? Compare Docker Swarm with Kubernetes.
- What are Multistage Builds in Dockerfile? When should you use them?
- How can you optimize the size of a Docker image?
- What is Docker Registry? Compare Docker Hub with a Private Registry.
- How do you secure Docker containers?
- Explain how to deploy a microservices architecture using Docker Compose or Swarm.
- How do you manage state in Docker (stateful applications)?
- How does Overlay Networking work in Docker?
- How do you configure CPU and memory for a container?
- How do you monitor the performance of a container?
Situational Questions
- If your container fails to start, what steps would you take to troubleshoot and fix it?
- You have an application requiring Redis as a cache and MySQL as a database. Design a Docker Compose file for this setup.
- How do you deploy Docker in a production environment?
- A Docker container is running slower than usual. What steps would you take to analyze the cause?
- How do you update a container without disrupting the service?
No comments:
Post a Comment