Official Docker images are provided by Kitware, the developers of CMake.
See Docker installation: Docker
Kitware maintains official CMake images on Docker Hub:
kitware/cmakedocker pull kitware/cmake:latest
docker run --rm -it kitware/cmake:latest cmake --version
Mount your project directory and run CMake:
docker run --rm -it \
-v /path/to/your/project:/project \
-w /project \
kitware/cmake:latest \
cmake -B build -S .
Kitware provides versioned tags:
# Specific version
docker run --rm -it kitware/cmake:ci-debian13-x86_64-2025-11-11 cmake --version
# List available tags: https://hub.docker.com/r/kitware/cmake/tags
Deploying CMake in containers for production? Our consulting covers:
Get expert help: office@linux-server-admin.com | Contact Page
References: