FullStackFSCCafé
 
 
Sign in with GoogleSign in with Google. Opens in new tab
Kill Your Tech Interview
3877 Full-Stack, Algorithms & System Design Interview Questions
Answered To Get Your Next Six-Figure Job Offer
      

Top 65 Docker Interview Questions

Entry Junior Mid Senior Expert
Sign in with GoogleSign in with Google. Opens in new tab
Topic Progress:

Theoretical Questions

Q1:   

What is Docker?

  
Add to PDF   Entry 
Q2:   

What does Containerization mean?

  Related To: DevOps
Add to PDF   Junior 
Q3:   

Can you remove (‘docker rm’) a container that is paused?

  
Add to PDF   Junior 
Q4:   

Do I lose my data when the Docker container exits?

  
Add to PDF   Junior 
Q5:   

What is Build Cache in Docker?

  
Add to PDF   Junior 
Q6:   

What’s the difference between a repository and a registry?

  
Add to PDF   Junior 
Q7:   

How to build envrionment-agnostic systems with Docker?

  
Add to PDF   Junior 
Q8:   

How to link containers?

  
Add to PDF   Junior 
Q9:   

What type of applications - Stateless or Stateful are more suitable for Docker Container?

  
Add to PDF   Junior 
Q10:   

What is Docker image?

  
Add to PDF   Junior 
Q11:   

What is Docker container?

  
Add to PDF   Junior 
Q12:   

What is the difference between CMD and ENTRYPOINT in a Dockerfile?

  
Add to PDF   Junior 
Q13:   

What is the difference between ‘docker run’ and ‘docker create’?

  
Add to PDF   Junior 
Q14:   

Is there a way to identify the status of a Docker container?

  
Add to PDF   Junior 
Q15:   

What are the most common instructions in Dockerfile?

  
Add to PDF   Junior 
Q16:   

What are the various states that a Docker container can be in at any given point in time?

  
Add to PDF   Junior 
Q17:   

What is Docker hub?

  
Add to PDF   Junior 
Q18:   

What is the difference between the COPY and ADD commands in a Dockerfile?

  
Add to PDF   Junior 
Q19:   

When would you use ‘docker kill’ or ‘docker rm -f’?

  
Add to PDF   Junior 
Q20:   

What is the difference between a Docker image and a container?

  
Add to PDF   Junior 
Q21:   

What is Hypervisor?

  
 Add to PDF   Mid 
Q22:   

How can we control the startup order of services in Docker compose?

  
 Add to PDF   Mid 
Q23:   

Explain a use case for Docker

  Related To: DevOps
 Add to PDF   Mid 
Q24:   

Explain what are some Pods usage patterns?

  Related To: Kubernetes
 Add to PDF   Mid 
Q25:   

Which problems does a Container Orchestration solve?

  Related To: Kubernetes, DevOps
 Add to PDF   Mid 
Q26:   

Explain when to use Docker vs Docker Compose vs Docker Swarm vs Kubernetes

  Related To: Kubernetes
 Add to PDF   Mid 
Q27:   

What is the preferred way of removing containers - ‘docker rm -f’ or ‘docker stop’ then followed by a ‘docker rm’?

  
 Add to PDF   Mid 
Q28:   

What is the difference between Kubernetes and Docker?

  Related To: Kubernetes, DevOps
 Add to PDF   Mid 
Q29:   

What is the default CPU limit set for a container?

  
 Add to PDF   Mid 
Q30:   

What is the purpose of EXPOSE command in Dockerfile?

  
 Add to PDF   Mid 
Q31:   

What is the difference between “expose” and “publish” in Docker?

  
 Add to PDF   Mid 
Q32:   

Should I use Vagrant or Docker for creating an isolated environment?

  
 Add to PDF   Mid 
Q33:   

How will you monitor Docker in production?

  
 Add to PDF   Mid 
Q34:   

Could you explain what is Emulation?

  
 Add to PDF   Mid 
Q35:   

What is the difference between CMD and ENTRYPOINT in a Dockerfile?

  
 Add to PDF   Mid 
Q36:   

What is virtualisation?

  
 Add to PDF   Mid 
Q37:   

Docker Compose vs. Dockerfile - which is better?

  
 Add to PDF   Mid 
Q38:   

What exactly do you mean by “Dockerized node”? Can this node be on-premises or in the cloud?

  
 Add to PDF   Mid 
Q39:   

What happens if you add more than one CMD instruction to a Dockerfile?

  
 Add to PDF   Mid 
Q40:   

Explain basic Docker usage workflow

  
 Add to PDF   Mid 
Q41:   

What is the difference between Docker Image and Layer?

  
 Add to PDF   Mid 
Q42:   

Can you create containers wihout their own PID namespace?

  
 Add to PDF   Mid 
Q43:   

What is Docker Swarm?

  
 Add to PDF   Mid 
Q44:   

Can you explain dockerfile ONBUILD instruction?

  
 Add to PDF   Senior 
Q45:   

Can you run Docker containers natively on Windows?

  
 Add to PDF   Senior 
Q46:   

Is it good practice to run stateful applications on Docker? What are the scenarios where Docker best fits in?

  
 Add to PDF   Senior 
Q47:   

What are the different kinds of namespaces available in a Container?

  
 Add to PDF   Senior 
Q48:   

Why do we need Kubernetes (and other orchestrators) above containers?

  Related To: Kubernetes
 Add to PDF   Senior 
Q49:   

What is the difference between Docker RUN, CMD and ENTRYPOINT?

  
 Add to PDF   Senior 
Q50:   

How is Container different from a Virtual Machine?

  Related To: DevOps
 Add to PDF   Senior 
Q51:   

What is Paravirtualization?

  
 Add to PDF   Senior 
Q52:   

When you limit the memory for a container, does it reserve (guarantee) the memory?

  
 Add to PDF   Senior 
Q53:   

Is it possible to generate a Dockerfile from an image?

  
 Add to PDF   Senior 
Q54:   

What is an orphant volume and how to remove it?

  
 Add to PDF   Senior 
Q55:   

How virtualization works at low level?

  
 Add to PDF   Senior 
Q56:   

How is Docker different from a virtual machine?

  
 Add to PDF   Senior 
Q57:   

How to use Docker with multiple environments?

  
 Add to PDF   Expert 
Q58:   

Why did Docker jump from version 1.13 to 17.03?

  
 Add to PDF   Expert 
Q59:   

How containers works at low level?

  
 Add to PDF   Expert 
Q60:   

How does Docker run containers in non-Linux systems?

  
 Add to PDF   Expert 
Q61:   

Why Docker compose does not wait for a container to be ready before moving on to start next service in dependency order?

  
 Add to PDF   Expert 
Q62:   

Name some limitations of containers vs VM

  
 Add to PDF   Expert 
Q63:   

Can you explain a relationship between container runtime and container orchestration?

  Related To: Kubernetes, DevOps
 Add to PDF   Expert 
Q64:   

What's the difference between pm2 and pm2-runtime and when to use one?

  Related To: Node.js
 Add to PDF   Expert 

Code Challenges

Q1:   

How do I transfer a Docker image from one machine to another one without using a repository, no matter private or public?

  
 Add to PDF   Junior 
 

Rust has been Stack Overflow’s most loved language for four years in a row and emerged as a compelling language choice for both backend and system developers, offering a unique combination of memory safety, performance, concurrency without Data races...

Clean Architecture provides a clear and modular structure for building software systems, separating business rules from implementation details. It promotes maintainability by allowing for easier updates and changes to specific components without affe...

Azure Service Bus is a crucial component for Azure cloud developers as it provides reliable and scalable messaging capabilities. It enables decoupled communication between different components of a distributed system, promoting flexibility and resili...

Cosmos DB has gained popularity among developers and organizations across various industries, including finance, e-commerce, gaming, IoT, and more. Follow along and learn the 24 most common and advanced Azure Cosmos DB interview questions and answers...
More than any other NoSQL database, and dramatically more than any relational database, MongoDB's document-oriented data model makes it exceptionally easy to add or change fields, among other things. It unlocks Iteration on the project. Iteration f...
Unit Tests and Test Driven Development (TDD) help you really understand the design of the code you are working on. Instead of writing code to do something, you are starting by outlining all the conditions you are subjecting the code to and what outpu...
Domain-Driven Design is nothing magical but it is crucial to understand the importance of Ubiquitous Language, Domain Modeling, Context Mapping, extracting the Bounded Contexts correctly, designing efficient Aggregates and etc. before your next DDD p...
At its core, Microsoft Azure is a public cloud computing platform - with solutions including Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS) that can be used for services such as analytics, virtual c...
As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. Follow along to refresh your knowledge and explore the 52 most frequently asked and advanced Node JS Interview Questions and Answers every...
Dependency Injection is most useful when you're aiming for code reuse, versatility and robustness to changes in your problem domain. DI is also useful for decoupling your system. DI also allows easier unit testing without having to hit a database and...