GROMACS 2026.4 with gmxapi container image¶
1. What this image is¶
firesimulations/gromacs:gmxapi2026.4-r1 is GROMACS 2026.4 with the real gmxapi Python package, plus GromacsWrapper, NumPy, SciPy, matplotlib (headless Agg), mpi4py and networkx, on Ubuntu 26.04. It is for scripting and workflow development: you drive grompp and mdrun from Python. It is CPU only, thread-MPI, with the SSE2 SIMD level (runs on any x86-64 CPU). For fast production mdrun use the GROMACS CPU image. gmxapi is built from the python_packaging/gmxapi folder of the GROMACS 2026.4 source against the libgmxapi of the same build; the package metadata says 0.4.1 and gmxapi.__version__ reports 0.5.0a1 (as in the GROMACS 2026.4 source tree).
2. Tags and versions¶
| Tag | Contents |
|---|---|
gmxapi2026.4-r1 |
GROMACS 2026.4 (thread-MPI, SSE2) with gmxapi and the Python stack |
Tag pattern for add-on images in this repository: <add-on><GROMACS version>-r<N>.
A published tag never changes; a changed image gets the next -rN (tags and revisions). Digests and DOIs: release notes.
3. Get the image¶
docker pull firesimulations/gromacs:gmxapi2026.4-r1
docker pull firesimulations/gromacs@sha256:<digest of the release note> # byte-exact; preferred in papers
Without Docker Hub, download the archive from the Zenodo record of the tag and follow load an image from Zenodo. See also verify an image.
4. Quick start¶
docker run --rm firesimulations/gromacs:gmxapi2026.4-r1 python -c "import gmxapi; print(gmxapi.__version__)"
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" firesimulations/gromacs:gmxapi2026.4-r1 python3 script.py
docker run --rm -v "${PWD}:/work" firesimulations/gromacs:gmxapi2026.4-r1 python3 script.py
There is no entrypoint: the command follows the image name. The working directory is /work. The gmx command is available as well (gmx grompp ...).
5. What is inside¶
| Component | Version / location |
|---|---|
| GROMACS | 2026.4, thread-MPI, SSE2, in /opt/gromacs (GMXDATA, GMXBIN, GMXLDLIB are set) |
| gmxapi | built from the 2026.4 source tree (gmxapi.__version__ = 0.5.0a1) |
| Python | virtual environment /opt/venv (on PATH) with GromacsWrapper, NumPy, SciPy, matplotlib, mpi4py, networkx |
| Operating system | Ubuntu 26.04 |
| Not in the image | compiler, CMake, GPU support, MPI-enabled GROMACS |
The complete package list is software-versions.txt in each Zenodo record; the SBOM is sbom.spdx.json.
6. Usage guide¶
A minimal workflow (run by the image's tests on a water box):
import gmxapi as gmx
g = gmx.commandline_operation("gmx", "grompp",
input_files={"-f": "md.mdp", "-c": "box.gro", "-p": "topol.top"},
output_files={"-o": "md.tpr"})
md = gmx.mdrun(g.output.file["-o"])
md.run()
Thread parallelism is set with mdrun's -ntmpi and -ntomp as usual. Several MPI ranks inside Python (mpirun -np N python3 script.py) need an MPI-enabled GROMACS; this image is thread-MPI.
7. Input and output conventions¶
| Item | Value |
|---|---|
| Working directory | /work |
| Python | /opt/venv/bin/python (also python3) |
| Exit status | non-zero when a command fails |
8. Performance and resources¶
CPU only, SSE2 level: use this image for scripting and API work, not for the fastest production runs. Set -ntmpi/-ntomp explicitly.
9. Verification¶
docker run --rm firesimulations/gromacs:gmxapi2026.4-r1 gmx --version | grep -E 'GROMACS version|SIMD'
docker run --rm firesimulations/gromacs:gmxapi2026.4-r1 python -c "import gmxapi; print(gmxapi.__version__)"
Expected: GROMACS 2026.4, SIMD SSE2, gmxapi 0.5.0a1. Maintainers' checks before release (18 Nov 2026): 18 of 18 passed as root and as uid 4242 on a read-only root file system (versions, imports, pip check, no missing library, no compiler in the image, a real gmxapi workflow with grompp and mdrun on a water box, GromacsWrapper finds gmx, a failing command returns non-zero). Not covered: GPU, several nodes, the gmxapi unit-test suite.
The release pipeline additionally ran the image's smoke test as the image user and as uid 4242 on a read-only root file system, scanned the image for fixable critical or high vulnerabilities and for embedded secrets, and recorded the results in the release note and in smoke-test-report.txt of the Zenodo record.
10. Reproducibility checklist for a paper¶
Record: the tag, the digest and the version DOI of the release note; the exact command lines; the SHA-256 of every input file; the -ntmpi/-ntomp values, and the script itself. The Python packages were installed from PyPI at build time without hash pinning; the installed versions are in software-versions.txt of the Zenodo record and are what you should cite.
11. How to cite¶
Primary reference: this container image. If you use this image, cite its Zenodo record (the version DOI of the tag you used):
Noor, D. H. (2026). GROMACS 2026.4 with gmxapi container image (Version gmxapi2026.4-r1+doc2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.24628486
@software{scdoc_gmxapi_gmxapi2026_4_r1_doc2,
author = {Noor, Dilwar Hossain},
title = {GROMACS 2026.4 with gmxapi container image},
version = {gmxapi2026.4-r1+doc2},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24628486},
url = {https://doi.org/10.5281/zenodo.24628486}
}
All versions of this image line: concept DOI 10.5281/zenodo.24615963. Each Zenodo record also contains CITATION.cff and CITATION.bib; the release notes list every tag.
Secondary references: the programs inside this image. Please also cite the original publications of the programs you used:
- GROMACS: Abraham, M. J. et al. (2015). GROMACS: High performance molecular simulations through multi-level parallelism from laptops to supercomputers. SoftwareX 1–2, 19–25. https://doi.org/10.1016/j.softx.2015.06.001
- gmxapi: cite the gmxapi publication given in the GROMACS documentation for the version you use; and GromacsWrapper if you use it.
12. Licences and source offer¶
| Component | Licence |
|---|---|
| GROMACS 2026.4 and gmxapi | LGPL-2.1-or-later |
| GromacsWrapper | GPL-3.0 |
| NumPy, SciPy, mpi4py, networkx | BSD |
| matplotlib | matplotlib licence (PSF-based) |
| Operating-system packages | mixed; copyright files inside the image |
Source offer. The same unmodified source archives are also preserved in the Zenodo record 10.5281/zenodo.24615769 (file list and checksums in its SOURCES.md). GROMACS was built from the unmodified upstream source https://ftp.gromacs.org/gromacs/gromacs-2026.4.tar.gz (SHA-256 58eda60979b124fcf9dff8b1b63cedfbc72fdb36d99e921dc1bdc310571098b6); gmxapi from its python_packaging/gmxapi folder. Python packages and their versions are listed in software-versions.txt; their sources are on PyPI. On request to the maintainer, the corresponding source of any GPL/LGPL component will be provided for three years from the release date. The build recipe is not distributed.
13. Known limits and troubleshooting¶
gmxapi.__version__reports 0.5.0a1 while the package metadata says 0.4.1; this is how the GROMACS 2026.4 source tree labels it.- Not tested: GPU (none in the image), several nodes, the gmxapi unit-test suite.
- The earlier
2024.3.rdtscp.gmxapitag did not import gmxapi; it is not related to this image. - A Trivy finding for
setuptools 70.3.0(CVE-2025-47273) refers to the copy vendored inside pip; the vulnerable code is not present, and the installed setuptools is 84.2.1.
14. Changelog¶
| Tag | Date | Change |
|---|---|---|
gmxapi2026.4-r1 |
2026-11-28 | first release |