What is Docker?
Docker is a platform that packages applications and their dependencies into lightweight, portable containers. Think of it as a way to run software in an isolated environment that works the same on any computer.
Why We Use Docker
CodeArchaeology covers 50+ programming languages, many of which require specific compilers, interpreters, or runtime environments. Docker lets you:
- Run any language instantly without installing compilers or SDKs
- Avoid version conflicts between different languages or tools
- Get consistent results regardless of your operating system
- Clean up easily - containers leave no trace when removed
Instead of installing FORTRAN, COBOL, Pascal, and dozens of other toolchains, you simply pull a Docker image and run code.
Getting Docker
Docker Desktop is free for personal use and available for all major platforms:
| Platform | Download |
|---|---|
| Windows | Docker Desktop for Windows |
| macOS | Docker Desktop for Mac |
| Linux | Docker Engine for Linux |
After installation, verify it’s working:
| |
Basic Docker Commands
| |
Key flags:
--rmremoves the container after it exits (keeps things clean)-v $(pwd):/appmounts your current directory into the container-w /appsets the working directory inside the container
Helpful Resources
- Docker Overview - Official introduction
- Docker Get Started Guide - Step-by-step tutorial
- Docker Hub - Repository of official and community images
- Docker Cheat Sheet - Quick reference (PDF)