* Once someone has done the work of putting together a docker image with everything you need (and we rarely need something too special), you can get a copy and use it with 1 terminal command.
**Why not?*
An alternative without the frills:
For gcc only without the frills:
https://hub.docker.com/_/gcc/
https://github.com/docker-library/gcc
https://hub.docker.com/_/gcc/
https://github.com/docker-library/gcc
This is a debian-based image, but it comes with gcc (and now gfortran!) preinstalled and nothing else. Nice for getting a compiler for free to put through the paces.