AlgoViz

Docker

easy 26 min

Docker packages a program with its files into an image and runs it as an isolated process called a container.

What each level should show

The same question is judged differently for mid, senior and staff.

  • Mid

    Must show

    • Image, container, layer, volume
    • Writes a cached, multi-stage build
    • Knows containers share the kernel

    Will be probed on

    • Name resolution
    • What is lost on removal

    Stands out

    Explains deletes and secrets in layers.

  • Senior

    Must show

    • Names namespaces and cgroups correctly
    • Sets limits, health, logs, signals
    • Hardens the container

    Will be probed on

    • OOM and throttling
    • Published ports and firewalls
    • Root inside

    Stands out

    Debugs from exit codes and cgroup numbers.

  • Staff

    Must show

    • Chooses between containers, VMs, serverless
    • Owns supply chain: base images, scanning, signing
    • Counts the platform's cost

    Will be probed on

    • Multi-tenant isolation
    • Registry as a dependency
    • Exit from a vendor

    Stands out

    Says when not to add an orchestrator.