4 ms·
Isn’t Docker implemented in Go already?
by miked85 6y ago
Isn’t Docker implemented in Go already?
- thephyber 6y agoYes. TIL. > What Programming Language Does Docker Use? Docker is written in the Google Go (golang) programming language. To learn why Go was used, we’ll refer you directly to Google.[1] [1] https://blog.stoneriverelearning.com/docker-101-what-is-docker-and-how-does-it-work/ https://blog.stoneriverelearning.com/docker-101-what-is-dock...
- birdyrooster 6y agoDoesn't matter, rewrite it and make the name a gortmanteau.
- dvtrn 6y agogortmanteau Sir we need you to come with us.
- rantwasp 6y agotake your upvote and get out :))
- stock_toaster 6y agoI think you mean, take your upvote and go. ;)
- rantwasp 6y agotake your upvote, check err and go.
- donio 6y ago...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 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.
- shuss 6y agoYep. Docker is famously written Go. The only reason I wrote this is as an educational tool to discuss how containers under Linux really work. It’s self-contained (pun unintended) except for the usage of the go-containerregistry package, which anyway does stuff unrelated to how containers are managed on Linux.
- IceWreck 6y agoYeah both Docker and Podman are written in Go