-
Book Overview & Buying
-
Table Of Contents
Systems Programming with Zig
By :
Docker is a platform that makes it easier to build, run, and manage applications in isolated environments called containers. A container is like a lightweight, standalone box that packages your application code, dependencies, and configuration — everything it needs to run — into a single unit. Internally, Docker uses Linux distributions and commands, but it can run on many operating systems. In this section, we are going to create a Docker image for running two Zig programs, which are going to be a TCP and a UDP Echo server. All necessary files are located inside the ch06/dock directory.
$ tree ch06/dock
ch06/dock
├── docker-compose.yaml
├── Dockerfile
├── tcp.zig
└── udp.zig
1 directory, 4 files
We are not going to deal with tcp.zig and udp.zig as the code in these two files is covered in previous sections. So, first, let us see and understand the contents...