Choose a Stata version, edition and flavor, and this page writes the pull command, a starter Dockerfile (or Compose, Podman or Apptainer/Singularity file) and the commands to build and run it on Linux, macOS or Windows. Only images that actually exist are offered.
What is a container?
A container image packages an operating system, Stata and everything around it into one file that runs the same way on any computer with Docker (or Podman, or Singularity). Pinning an image tag (e.g., `2026-08-12`) pins the whole computing environment, which makes automated runs and replication packages reproducible. See the Carpentries introduction to Docker to learn more.
Save the file above in your project folder, next to main.do and code/setup.do, then run these commands from that folder. The Stata license is never copied into the image. During the build it is passed as a secret, so setup.do can install packages. At run time it is mounted read-only.