A lightweight Docker image to compile and run C++ programs in an isolated environment.
10K+
This Docker image allows you to compile and run C++ programs in an isolated environment using Docker.
To pull the image from Docker Hub, use the following command:
docker pull saqibbedar/cpp-docker-runner:latest
To run the container and execute the C++ program, use the following command:
docker run -it --rm saqibbedar/cpp-docker-runner:latest
git clone https://github.com/saqibbedar/cpp-docker-runner.git
cd cpp-docker-runner
docker build -t saqibbedar/cpp-docker-runner:latest .
To customize the C++ code, modify the main.cpp file and rebuild the Docker image:
# Make your changes to main.cpp
docker build -t saqibbedar/cpp-docker-runner:latest .
docker run -it --rm saqibbedar/cpp-docker-runner:latest
The source code for this Docker image is available on GitHub:
Content type
Image
Digest
sha256:2ebd6f249…
Size
486.3 MB
Last updated
almost 2 years ago
docker pull saqibbedar/cpp-docker-runner