-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44a7443
commit f6e468a
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Day 21 Task: Important Docker Interview Questions | ||
|
||
## Docker Interview | ||
|
||
Docker is a crucial topic for DevOps Engineer interviews, especially for freshers. Here are some essential questions to help you prepare and ace your Docker interviews: | ||
|
||
## Questions | ||
|
||
- What is the difference between an Image, Container, and Engine? | ||
- What is the difference between the Docker command COPY vs ADD? | ||
- What is the difference between the Docker command CMD vs RUN? | ||
- How will you reduce the size of a Docker image? | ||
- Why and when should you use Docker? | ||
- Explain the Docker components and how they interact with each other. | ||
- Explain the terminology: Docker Compose, Dockerfile, Docker Image, Docker Container. | ||
- In what real scenarios have you used Docker? | ||
- Docker vs Hypervisor? | ||
- What are the advantages and disadvantages of using Docker? | ||
- What is a Docker namespace? | ||
- What is a Docker registry? | ||
- What is an entry point? | ||
- How to implement CI/CD in Docker? | ||
- Will data on the container be lost when the Docker container exits? | ||
- What is a Docker swarm? | ||
- What are the Docker commands for the following: | ||
- Viewing running containers | ||
- Running a container under a specific name | ||
- Exporting a Docker image | ||
- Importing an existing Docker image | ||
- Deleting a container | ||
- Removing all stopped containers, unused networks, build caches, and dangling images? | ||
- What are the common Docker practices to reduce the size of Docker images? | ||
- How do you troubleshoot a Docker container that is not starting? | ||
- Can you explain the Docker networking model? | ||
- How do you manage persistent storage in Docker? | ||
- How do you secure a Docker container? | ||
- What is Docker overlay networking? | ||
- How do you handle environment variables in Docker? | ||
|
||
These questions will help you in your next DevOps interview. Write a blog and share it on LinkedIn to showcase your knowledge. | ||
|
||
**Happy Learning :)** | ||
|
||
[← Previous Day](../day20/README.md) | [Next Day →](../day22/README.md) |