Download the Container Images#

This guide explains how to download pre-built Dioptra container images from the GitHub Container Registry (GHCR) and verify their authenticity. After completing these steps, you will have container images ready for deployment.

Note

See the Glossary for the meaning of the acronyms used in this guide.

Prerequisites#

  • Docker Engine installed and running

  • A terminal with access to Docker commands

  • (Optional) cosign installed for image verification

  • (Optional) jq for easier key path retrieval

Downloading the Images#

Dioptra images are tagged based on release versions and branches. Choose the appropriate tag for your use case:

  • Release tags (e.g., 1.0.0): Stable releases recommended for production use

  • Branch tags (e.g., dev): Latest development builds

Replace $TAG with your chosen tag in the commands below or set the TAG environment variable to your chosen value.

Step 1: Pull the Core Images#

Open a terminal and pull the core Dioptra images:

docker pull ghcr.io/usnistgov/dioptra/nginx:$TAG
docker pull ghcr.io/usnistgov/dioptra/mlflow-tracking:$TAG
docker pull ghcr.io/usnistgov/dioptra/restapi:$TAG

Step 2: Pull Worker Images#

Pull one or more worker images depending on your needs.

CPU workers:

docker pull ghcr.io/usnistgov/dioptra/pytorch-cpu:$TAG
docker pull ghcr.io/usnistgov/dioptra/tensorflow2-cpu:$TAG

GPU workers (optional):

docker pull ghcr.io/usnistgov/dioptra/pytorch-gpu:$TAG
docker pull ghcr.io/usnistgov/dioptra/tensorflow2-gpu:$TAG

Step 3: Verify the Images Exist Locally#

Run docker images to verify that the container images are available with your chosen tag:

docker images | grep ghcr.io/usnistgov/dioptra

You should see output similar to the following (assuming the 1.0.0 tag):

REPOSITORY                                   TAG       IMAGE ID       CREATED         SIZE
ghcr.io/usnistgov/dioptra/nginx              1.0.0     17235f76d81c   3 weeks ago     243MB
ghcr.io/usnistgov/dioptra/restapi            1.0.0     f7e59af397ae   3 weeks ago     1.16GB
ghcr.io/usnistgov/dioptra/mlflow-tracking    1.0.0     56c574822dad   3 weeks ago     1.04GB
ghcr.io/usnistgov/dioptra/pytorch-cpu        1.0.0     5309d66defd5   3 weeks ago     3.74GB
ghcr.io/usnistgov/dioptra/tensorflow2-cpu    1.0.0     13c4784dd4f0   3 weeks ago     3.73GB

Note

The IMAGE ID, CREATED, and SIZE fields will vary. Verify that the REPOSITORY and TAG columns match your expected images.

Next Steps#

Once you have finished downloading the container images, move onto the next step: Prepare Your Deployment

See Also#