Small "hello world" program:
$ ./hello.cBuild program and run program:
$ make
$ ./helloBuild image and run container:
$ nerdctl build -t hello .
$ nerdctl run --rm hello#include <stdio.h>
int main() {
puts("Hello, world!");
}cat hello.txtHello, World!
Repository from Github https://github.comafbjorklund/hello-nerd
Small "hello world" program:
$ ./hello.cBuild program and run program:
$ make
$ ./helloBuild image and run container:
$ nerdctl build -t hello .
$ nerdctl run --rm hello#include <stdio.h>
int main() {
puts("Hello, world!");
}cat hello.txtHello, World!