Why Run Containers in the Cloud with gVisor? (Docker/Kubernetes)

Photo by Matthew Henry on Unsplash
root@main:~# docker run -dit --name=weak ubuntu
633da546cf70b5f54ca1e36217a953936b35e1011a71de0063187d540592dbb1
root@main:~# docker run --runtime=runsc -dit --name=strong ubuntu
236fb10ff50f41c0d45b21ebc1ab085d463a86a21d7af3e4c21c23721120ac1a
#include <stdio.h>
#include <sys/sysinfo.h>
// @ Author: adilint main(void)
{
struct sysinfo si;
sysinfo(&si);
printf("Uptime: %lu\n", si.uptime);
printf("Loads: %lu\n", si.loads[0]);
printf("Ram: %lu\n", si.totalram);
printf("Free Ram: %lu\n", si.freeram);
printf("Shared Ram: %lu\n", si.sharedram);
printf("Buffer Ram: %lu\n", si.bufferram);
printf("Swap: %lu\n", si.totalswap);
printf("Free Swap: %lu\n", si.freeswap);
printf("process count: %d\n", si.procs);
return 0;
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store