I installed clion but I need MinGW for compilation, but I decided to go a different way through docker. I installed the plugin in clion and the gcc container for compilation.

I connected them, but when compiling, an error occurs:

Deploying 'gcc Image Id: 61eb6c42f780'... Creating container... Failed to deploy 'gcc Image Id: 61eb6c42f780': com.github.dockerjava.api.exception.NotFoundException: {"message":"No such image: 61eb6c42f7804b5a9bf9698893cece48e8b1abe3905b222bffc6f53c7c642206:latest"} 

Does an error mean that clion cannot find a container?

Screenshots of my settings in clion enter image description here

enter image description here

Container id and name are entered correctly and paths too. Navigation by jetbrains documentation

  • Yes, it seems like that. It is strange that he refers to the image by ID, try to specify the usual human-readable name - etki
  • changed the image id to id started to get the message that was successful. > Deploying 'gcc Image Id: gcc' ...> Creating container ...> Container Id: e359a864d4faa526bea98f9c2a20eb01481062ac0daede7f1daf3def324a353b> Attaching to container 'gcc' ...> Starting container 'gcc' 'gcc' ...> Starting container 'gcc> gcc 3 gc3 b gcc' ...> Starting container c gcc: gcc 3 gcc Atta gcc ... gcc> gcc> gcc Image> successfully. But why in the console there is no fact that the program is compiled successfully and executed? - fermeg
  • With this configuration, you simply launch the docker container. CLion has no idea that gcc is in it, you just tell it to start the container - and it starts. As far as I understand, you need to somehow add an instance of gcc (and not the docker container), which in fact will be a wrapper over docker run <repo>/gcc <аргументы, поступившие из clion> , and which will give the result directly to stdout, others I do not see ways. Perhaps CLion can run gcc via ssh, in which case you should pick up a permanent container with an ssh daemon and a gcc binary inside. - etki

0