- What is a container?
- A packaged application + its dependencies in an isolated process. Similar to a VM but shares the host kernel, so it's much lighter.
- Image vs container?
- Image is the blueprint (read-only). Container is a running instance (read-write). You can have many containers from the same image.
- First commands to know?
- docker pull (download image), docker run (start container), docker ps (list running), docker logs (see output), docker exec (shell into a container).
- What goes wrong first?
- Port conflicts (two containers on the same host port), volume mounts with wrong paths, and forgetting that data in a container is ephemeral without a volume.