How to use a Fedora Docker image to build a code? [closed]

asked 2018-09-30 07:40:33 -0500

why2 gravatar image


I want to build a C++ code with cmake that needs gcc6. From the discussion in, @hedayat recommend to use a docker image to install gcc6. I think that is a good idea to avoid a system conflict later.

Now, found a fedora gcc6 docker image and I executed docker pull mccaskey/base-fedora-gcc6, then docker run mccaskey/base-fedora-gcc6. Now, docker ps shows me that the container is running. But then how can I build the C++code with cmake? I cannot find a gcc6 binary on my terminal. Shall I write the cmake build procedure also in the Dockerfile? if yes, where can I find the Dockerfile of the downloaded image in the filesystem?


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by why2
close date 2018-09-30 15:17:33.989312


Ok, I found out how to build a docker image with gcc6 using a customized Dockerfile. I don't need that base-fedora-gcc6 image anymore.

why2 gravatar imagewhy2 ( 2018-09-30 15:17:13 -0500 )edit