Sign inSign up

dataeditors/stata19_5-mp-i-python

By dataeditors

Updated 14 days ago

Docker image for Stata, to be used in automation and reproducibility.

Image
0

492

dataeditors/stata19_5-mp-i-python repository overview

Docker image basic Stata image

For complete information, see https://github.com/AEADataEditor/docker-stata.

Stata in Docker

This Docker image is meant to serve as a basis for reproducible and automatable work using Stata.

NOTE: The image created by these instructions contains binary code that is © Stata. Permission was granted by Stata to Lars Vilhuber to post these images, without the license. A valid license is necessary to use these images.

Requirements

You need a Stata license to run the image. See https://github.com/AEADataEditor/docker-stata for full instructions.

Structure

The images are split into versions, flavors, editions (types), and several components.

Flavors

Stata version 18 and higher are available in the regular and the now flavors. The latter are denoted as _5 in the image name, i.e., stata18_5 for Stata Now 18.

Editions (types)

Stata comes in three editions: Basic Edition (be), Standard Edition (se), and MP-Parallel Edition (mp). While the typical Stata for Linux install will contain all three, the images here are split by type, each containing only one of the editions.

Versions
Components

For compactness, the various versions, editions, and flavors are provided in several components:

The naming goes as stata

  • followed by the version number (e.g., 19)
  • followed by the release number separated by _ if not zero (e.g., 19.0 = 19, but 19.5 becomes 19_5),
  • followed by the edition (be, se, mp),
  • followed by the optional -i for interactive, or the optional -x for GUI.
  • for some images, followed by the optional -python for Python support.
Base image

The base image serves all other images, but is not useful on its own - it does not contain any of the various Stata binaries.

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
dataeditors/stata19_5-base  test  90364eb9a9d9  9 minutes ago   795MB
Minimal command line images

These images have only the relevant command line binaries. They are fully functional, but contain no documentation or help files, and are meant to be used for automation. A license appropriate for each version is necessary: Basic Edition (be), Standard Edition (se), and MP-Parallel Edition (mp).

NOTE: these images were built with the 32-core edition. They have not been tested with lower-core-count licenses. Please provide feedback if they do not work.

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
dataeditors/stata19_5-mp    test  4c1580c00abd  9 minutes ago   1.18GB
dataeditors/stata19_5-se    test  662e2d09026e  9 minutes ago   1.12GB
dataeditors/stata19_5-be    test  5f87e594ddbf  9 minutes ago   1.12GB
Command line images for interactive development

These images have help files, and are suitable for interactive development, for instance by inclusion in JupyterLab or in on-demand cloud instances. They use the non-i versions (above) as the basis, and simply add a layer with the help files.

REPOSITORY                  TAG   IMAGE ID      CREATED         SIZE
dataeditors/stata19_5-mp-i  test  642e4a006672  9 minutes ago   1.41GB
dataeditors/stata19_5-se-i  test  76786bda8680  9 minutes ago   1.32GB
dataeditors/stata19_5-be-i  test  f5600d1fe84d  9 minutes ago   1.32GB
Same as above, with Python installed

For select interactive images, a version is installed with Python support. These images have the -python suffix. They are substantially larger than the non-Python versions. Please let us know if you run into issues.

REPOSITORY                          TAG   IMAGE ID      CREATED         SIZE
dataeditors/stata19_5-mp-i-python  2026-02-18  555452384561   3 weeks ago      2.04GB
dataeditors/stata19_5-se-i-python  2026-02-18  17745f15fdf1   3 weeks ago      1.95GB
dataeditors/stata19_5-be-i-python  2026-02-18  db2b73f72f1b   3 weeks ago      1.95GB
Interactive with GUI

The GUI (X) variants start with the -i variant, and add the x binaries. They are complete, but the container is NOT COMPLETE and will not work without additional installation of X11 libraries. If you do not know what I'm talking about do not use them AT ALL. If you do, then use these images in the FROM statement of a Dockerfile or Singularity image, then add all the necessary libraries.

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
dataeditors/stata19_5-mp-x  test  2fbc841cba25  9 minutes ago   1.92GB
dataeditors/stata19_5-se-x  test  dedf75051503  9 minutes ago   1.76GB
dataeditors/stata19_5-be-x  test  07b1b687e984  9 minutes ago   1.76GB

Special features

Containers have minimal additional Linux commands. If any are necessary, you will need to build your own image:

CommandAvailable since
git
nano
unzip
sudo2026-01-13

Accessing the images

You can browse all provided images at https://hub.docker.com/u/dataeditors.

NOTES

  • Tag 2025-08-13 corresponds to StataNow 19 released on 2025-08-13, using Ubuntu 22.04 as base image.

  • Tag 2025-08-14 corresponds to StataNow 19 released on 2025-08-13 as well, but using Ubuntu 24.04 as base image.

  • Select images have Python installed (with -python suffix). For this version, the system Python version is 3.12.3. If you need Python in other images, the following Dockerfile snippet can be used to add it to any of the images:

# Adjust as necessary
FROM dataeditors/stata18-se:2026-01-13
RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y \
         python3 \
         python3-pip \
    && rm -rf /var/lib/apt/lists/* \

Or have a look at Dockerfile.python for how we do it for the select images.

Tag summary

Content type

Image

Digest

sha256:52d3829a7

Size

915.9 MB

Last updated

14 days ago

docker pull dataeditors/stata19_5-mp-i-python:2026-08-12