Follow these steps to install and start docker:
Docker for Windows
Docker for MacOS
If you have problem with firewall on windows, install Docker Toolbox instead
Docker Toolbox for Windows
Docker Toolbox for MacOS
Use following command to enter the folder:
cd DockerCppthen run following commands to start the compile environment:
docker-compose build
docker-compose run --rm dockercppAfter # appears in the terminal, you can use following commands to build and run your project:
cd Proj
cmake -DCMAKE_CXX_STANDARD=11 -DCMAKE_BUILD_TYPE=Debug && cmake --build .
./mainTo quit the terminal, use exit command.
You can put your own project in the Proj folder, don't forget to write a CMakeLists.txt and a Makefile