Skip to main content

Command Palette

Search for a command to run...

Day 21 Task: Docker Important interview Questions.

Updated
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 in 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 Image?

More from this blog

Introduction Of DevOps

108 posts