Gocker: Docker implemented in 1.3k lines of Go
11–20 of 89 posts
Re: Gocker: Docker implemented in 1.3k lines of Go
#12Has anyone made an "X implemented in N lines of Y" site yet?
Re: Gocker: Docker implemented in 1.3k lines of Go
#13Re: Gocker: Docker implemented in 1.3k lines of Go
#14Re: Gocker: Docker implemented in 1.3k lines of Go
#15Isn’t Docker implemented in Go already?
But that misses the point. This is very helpful for understanding how a Docker-like system works since it's a small and mostly self-contained implementation. You can read through the entire thing and fully understand it.
It only cheats in the container registry handling where it pulls in github.com/google/go-containerregistry and for the network setup where it uses github.com/vishvananda/netlink. The rest is done in terms of Go stdlib and syscalls.
Early Docker used external utilities (lxc, iptables) and had the client/server stuff already so it's not as straightforward.
Re: Gocker: Docker implemented in 1.3k lines of Go
#16Re: Gocker: Docker implemented in 1.3k lines of Go
#17Has anyone made an "X implemented in N lines of Y" site yet?
Re: Gocker: Docker implemented in 1.3k lines of Go
#18Isn’t Docker implemented in Go already?
...and it was probably around 1.5K lines early in its life. But that misses the point. This is very helpful for understanding how a Docker-like system works since it's a small and mostly self-contained implementation. You can read through the entire thing and fully understand it. It only cheats in the container registry handling where it pulls in github.com/google/go-containerregistry and for the network setup where…
Re: Gocker: Docker implemented in 1.3k lines of Go
#19That being said, the code here is pretty approachable and they weren't noticeably trying to cram it into fewer lines. Like the library, not this marketing.