Return to Image List

gcc

gcc

The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Project that supports various programming languages. GCC is a key component of the GNU toolchain. The Free Software Foundation (FSF) distributes GCC under the GNU General Public License (GNU GPL). GCC has played an important role in the growth of free software, as both a tool and an example.

See gcc.gnu.org for more information

This image is built by IBM to run on the IBM Z architecture and is not affiliated with any other community that provides a version of this image.


License

View license information here

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.


Versions

Use the pull string below for the version of this image you require.
12.2.0-bullseye docker pull icr.io/ibmz/gcc@sha256:becf0d4862d3e02acdfc71570a4678d4794bdf7f765c96923b5b10d7b02bd790 Vulnerability Report10-04-2024
11.2.0 docker pull icr.io/ibmz/gcc@sha256:bad69d95cd27a0f28a2ce2dae5c44a6700f832d3286c1db976c5737175e563de Vulnerability Report10-04-2024
12.1.0-bullseye docker pull icr.io/ibmz/gcc@sha256:744580fac4005985bf23ebf94f129449fcfddfea9b04d1129c83ffcbff449ea8 Vulnerability Report10-04-2024
12 docker pull icr.io/ibmz/gcc@sha256:4dd2a1712c4fa3c6b607bb1966c0531598caee3c7f49f527b71c7dbc2992a79f Vulnerability Report10-04-2024
Version Pull String Security (IBM Cloud) Created

Usage Notes

Start a GCC instance running your app:


The most straightforward way to use this image is to use a gcc container as both the build and runtime environment. In your Dockerfile, writing something along the lines of the following will compile and run your project:

FROM icr.io/ibmz/gcc:[version]
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN gcc -o myapp main.c
CMD ["./myapp"]

Then, build and run the Docker image:

docker build -t my-gcc-app .


docker run -it --rm --name my-running-app my-gcc-app