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 docker pull icr.io/ibmz/gcc@sha256:8d4e42a8594483b234ca8e544d81462506d96202280081d9aab1f282c58a4bab Vulnerability Report10-29-2024
12.1.0-bullseye docker pull icr.io/ibmz/gcc@sha256:77b1e56610da5bdd642523524d3a321ba44c967ecc61d6d6c153dc4fcc769972 Vulnerability Report10-29-2024
11.2.0 docker pull icr.io/ibmz/gcc@sha256:3ad5df0192f0d584824ae206ca8a8a85f3303781c149525a55ea7037f49e5d96 Vulnerability Report10-29-2024
12.2.0-bullseye docker pull icr.io/ibmz/gcc@sha256:04bc6ce21a18e9bc4157e2c8da81048c917448588b6c8241669c9797a4ab8bdc Vulnerability Report10-29-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