Skip to main content

Command Palette

Search for a command to run...

Day 21 Task: Docker Important interview Questions.

Published
2 min readView as Markdown

Docker Interview

Docker is a good topic to ask in DevOps Engineer Interviews, mostly for freshers. One must surely try these questions in order to be better at Docker.

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 the Docker image?

  • Why and when to use Docker?

  • Explain the Docker components and how they interact with each other.

  • Explain the terminology: Docker Compose, Docker File, 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:

    • view running containers

    • command to run the container under a specific name

    • command to export a docker

    • command to import an already existing docker image

    • commands to delete a container

    • command to remove all stopped containers, unused networks, build caches, and dangling images?

  • What are the common Docker practices to reduce the size of Docker Images?

Thank you for reading this Blog. Hope you learned something new today! If you found this blog helpful, please like, share, and follow me for more blog posts like this in the future😊😊

More from this blog

90daysofdevopschallenge

37 posts