Skip to content

Docker

Containerization platform: packages an application along with its environment into a 'box'—a container—that works consistently across any machine.

Why in AI

AI services pull tens of dependencies: Python, PyTorch, CUDA, system libraries. Docker isolates all of this:

  • works the same for everyone;
  • does not conflict with other projects;
  • is easy to remove without leaving garbage on the host.

Key Concepts

Concept What It Is
Image Template for a container
Container Running instance of an image
Volume Data storage (e.g., model weights)
Compose Launch a stack of multiple containers

Example

docker run -d -p 11434:11434 ollama/ollama

Runs Ollama in a container and maps the port to the outside.

See Also

← All Terms