The Docker Trail
summary
Docker distributes a static binary and the team finds three concrete surprises: passing a Boolean via -ldflags makes Go 1.4 produce nondeterministic values so the build sometimes thinks it is not static; container processes are intentionally double-forked so grandchildren become orphaned and can be reaped; and to avoid installing pkcs11 shared libs they experiment with dlopen(NULL) plus -linkmode=external, -Wl,--whole-archive and -export-dynamic to expose symbols — it works in experiments but is not used in production.
AI-written summary · about
chapters (4)
related talks
26mWrite Once, Compile Lots, Run Anywhere
35mDeveloping Go apps with Docker
15m"ko: The Only Good Way to Build Go Containers"
22mWriting a Container Runtime in Go
31mDebugging Go: from zero to Kubernetes - Michele Caci
30mUltimate Guide to Golang Development for Beginners
04mJoan López de la Franca Beltran - Dockerization of Go
40mDebugging in Golang Apps Inside K8s Environment
