Versions: [10.2.0, 10.3.0, 11.1.0, 11.2.0, 11.3.0, 12.1.0, 12.2.0]


Download        : docker pull ghcr.io/autamus/gcc
Compressed Size : 213MB


The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go, as well as libraries for these languages.


Pull (Download)

To download the latest version of gcc run,

docker pull ghcr.io/autamus/gcc:latest

or to download a specific version of gcc run,

docker pull ghcr.io/autamus/gcc:10.2.0


To run the container as an application run,

docker run --rm ghcr.io/autamus/gcc gcc --version

or to run the container in an interactive session run,

docker run -it --rm ghcr.io/autamus/gcc bash

Mounting volumes between the container and your machine

To access files from your machine within the gcc container you’ll have to mount them using the -v external/path:internal/path option.

For example,

docker run -v ~/Documents/Data:/Data ghcr.io/autamus/gcc gcc /Data/myData.csv

which will mount the ~/Documents/Data directory on your computer to the /Data directory within the container.


If you’re looking to use this container in an HPC environment we recommend using Singularity-HPC to use the container just as any other module on the cluster. Check out the SHPC gcc container here.