Compiling Your Go Application for Containers
Another alternative way to distribute your application that has become increasingly popular in recent years is allowing your users to run the application in Linux containers.[81] Containers package your application and all the required dependencies using a standard image format, and they run the application in isolation from other processes running on the same system. Containers use Linux kernel resources such as Namespaces and Cgroups to provide isolation and resource management.
There are different container runtimes available, such as Podman[82] and Docker.[83] If you’re running these examples on a Linux system, you can use either one interchangeably. If you’re running on Windows or macOS, Docker ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access