This workflow was inspired by the Windows Subsystem for Linux (WSL) workflow described by Jetbrains here.
The idea is to be able to develop for Linux in CLion on Windows and Mac aswell. For Windows the WSL is preferable because it’s faster and has a lot of support. On Mac there isn’t a similar native Linux solution. The idea was to use a Docker container as a Remote Host following this Jetbrans article.
To do this we need a suitable Docker image, this one has been tested on Linux and Mac, and seems to work: Dockerfile.