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 12.2.0-bullseye docker pull icr.io/ibmz/gcc@sha256:d790fba41075a49200a41ee7f96ceff9c7701bf54fe4a4d6ee3b3dd161932468 Vulnerability Report04-30-2024
12.1.0-bullseye docker pull icr.io/ibmz/gcc@sha256:564f332fd070101a02e7e5b4131d5843ad19d118b718490cd66d111aa7d786fb Vulnerability Report04-30-2024
11.2.0 docker pull icr.io/ibmz/gcc@sha256:181a18309ae44d4f35bafd7b827438e6b1efdaac433a77f47bfc6681a48e781b Vulnerability Report04-30-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