Solutions for os, subprocess, requests exercises
Ex 3: Create and run a ‘Hello world’ C application
In your folder you should have this:
.
├── hello
└── main.c
The main.c has the code snippet inside. The hello is the compilede object.
The docker command you should run looks like this:
$ docker run -it --rm -v ${PWD}:/docs gcc bash
And the commands to compile and run the c code lookes like this.
# gcc -o hello main.c
# ./hello