Code: Select all
#include <stdio.h>
int main(int argc, char **argv)
{
printf("Hello\n");
}
run docker like so
Code: Select all
docker pull xora/qdos-gcc
docker run -v $PWD:/build -w /build -u $USER xora/qdos-gcc qdos-gcc -o hello hello.c
and you should have hello as a QDOS executable.
This is my first play with docker so please let me know any problems.