Docker Course
Docker
/
Intermediate

Intermediate Questions

Definition

Questions focusing on Dockerfile best practices, Volumes, Networking, and Docker Compose.

Explain Like I'm New

Proving you can actually build and manage a realistic application architecture locally.

Real World Example

Question: 'If you want to persist the data of a MySQL container so it survives restarts, what mechanism must you use and how does it work?'

Common Use Cases

  • •Full-Stack Developer Interviews

Interview Questions

basic

  • What is the purpose of a `.dockerignore` file?

intermediate

  • Explain the difference between `CMD` and `ENTRYPOINT` in a Dockerfile.

Flash Cards

Question

Purpose of .dockerignore?

Click to reveal answer
Answer

To prevent specific large or sensitive files (like `node_modules` or `.env`) from being copied into the Docker Build Context, significantly speeding up build times and improving security.

Question

CMD vs ENTRYPOINT?

Click to reveal answer
Answer

`ENTRYPOINT` sets the strict, unyielding executable that the container will always run. `CMD` provides default arguments to that executable that can easily be overridden by the user at runtime.