Sign inSign up

saqibbedar/cpp-docker-runner

By saqibbedar

•Updated almost 2 years ago

A lightweight Docker image to compile and run C++ programs in an isolated environment.

Image
Languages & frameworks
0

10K+

saqibbedar/cpp-docker-runner repository overview

⁠cpp-docker-runner

This Docker image allows you to compile and run C++ programs in an isolated environment using Docker.

⁠Usage

⁠Pull the Image

To pull the image from Docker Hub, use the following command:

docker pull saqibbedar/cpp-docker-runner:latest
⁠Running the Container

To run the container and execute the C++ program, use the following command:

docker run -it --rm saqibbedar/cpp-docker-runner:latest
⁠Building the Image Locally
git clone https://github.com/saqibbedar/cpp-docker-runner.git
cd cpp-docker-runner
docker build -t saqibbedar/cpp-docker-runner:latest .
⁠Customizing the Code

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
⁠Source Code

The source code for this Docker image is available on GitHub:

https://github.com/saqibbedar/cpp-docker-runner⁠

Tag summary

Content type

Image

Digest

sha256:2ebd6f249…

Size

486.3 MB

Last updated

almost 2 years ago

docker pull saqibbedar/cpp-docker-runner