Hacker GitHub

← All repos

p8952/bocker

View on GitHub ↗ ★ 12,709 Shell

Docker implemented in around 100 lines of bash

68 mentions on Hacker News by 48 people: 8 stories, 60 comments · first 2015-07-21 · latest 2026-10-23

Mentions per year 68 mentions · busiest year 2020 (15)
20082026
  1. …the article makes in a way that's very clear. [1] "Docker implemented in around 100 lines of bash" https://github.com/p8952/bocker
    comment by tyingq · 2026-10-23 · in Docker is weird
  2. …together by willpower not boundaries: https://jvns.ca/blog/2016/10/10/what-even-is-a-container/ https://github.com/p8952/bocker as a firm required to care about infosec, we appreciate the stance in their (2). and MacOS VMs are so fast now,…
  3. Bocker, docker in 100 lines of bash https://github.com/p8952/bocker
  4. …suffers from being useful in the open source space but having no reasonable method to make revenue. https://github.com/p8952/bocker
    comment by colechristensen · 2025-09-05 · in I ditched Docker for Podman
  5. …stripping it of anything unnecesary until leaving just the few isolation features we needed. [1] https://github.com/p8952/bocker/tree/master
    comment by manbitesdog · 2025-09-05 · in I ditched Docker for Podman
  6. I found this project to be an interesting POC of how it all actually works. https://github.com/p8952/bocker Basically, it runs docker containers using chroot to prove that it's possible. Docker uses Layered Filesystems (Multiple…
  7. Was it really so amazing? Here is half a Docker implementation, in about 100 lines of Bash... https://github.com/p8952/bocker
    comment by belter · 2024-07-12 · in Using S3 as a Container Registry
  8. Also recommend this Docker implementation in around 100 lines of bash: https://github.com/p8952/bocker
  9. …120 lines of bash that implements the important bits of docker using nsenter, btrfs, cgcreate, etc. https://github.com/p8952/bocker/blob/master/bocker
  10. …lines of shell script is really good in providing just an intro into what's needed for containers: https://github.com/p8952/bocker/blob/master/bocker (not mine)
  11. Probably: https://github.com/p8952/bocker
  12. Reminds me of Bocker[0] [0]: https://github.com/p8952/bocker
  13. …you couldn't reimplement podman in a few hundred lines of code. You don't even need a few hundred: https://github.com/p8952/bocker And then there's 'dokku' which IIRC, started as a bash version of Heroku. > Not all ideas have the same…
    comment by withinboredom · 2023-05-17 · in The Staff Engineer's Path – Book Review
  14. …seeing what's really happening underneath with nsenter, namespaces, network bridging, cgroups, etc. https://github.com/p8952/bocker
    comment by tyingq · 2023-05-12 · in Implement DNS in a Weekend
  15. > start with understanding what containers are Docker implemented in around 100 lines of bash: https://github.com/p8952/bocker This is the most mindblowing example for enterprise security teams that think Docker is a new threat on a single…
  16. …many times but I think Bocker is pretty cool - Docker implemented in around 100 lines of bash (1) https://github.com/p8952/bocker
  17. Bocker[1] does a reasonably good job of showing the value of Docker was mostly in Docker hub. [1] https://github.com/p8952/bocker
    comment by tyingq · 2022-11-09 · in What chroot taught me about containers
  18. …no one has mentioned Bocker yet – “Docker implemented in around 100 lines of bash”. [1, 2] [1]: https://github.com/p8952/bocker/ [2]: https://news.ycombinator.com/item?id=33218094 (116 comments)
    comment by notpushkin · 2022-11-09 · in What chroot taught me about containers
  19. …though, and that's too bad as it addressed some hardcoding issues and added a few helpful commands: https://github.com/p8952/bocker/pull/23 Revisiting the project, it looks like more people tried submitting PRs for the following couple…
  20. …way to learn more about this - Bocker, an implementation of docker in 119 lines of bash: https://github.com/p8952/bocker/blob/master/bocker
  21. > there was this bash-based Docker reimplementation https://github.com/p8952/bocker ? Last commit was 7 years ago, and even then this was more of an experiment / PoC - I really don't think this was ever meant as a viable replacement. (IMHO…
  22. slightly related: docker clone in 120 lines of bash - https://github.com/p8952/bocker/blob/master/bocker
  23. …in the urls: ## these tutorials explain the verb (runtime) but not noun (artifacts of image file) https://github.com/p8952/bocker/blob/master/bocker https://www.youtube.com/watch?v=8fi7uSYlOdc Because content cannot meta-analyze itself and…
  24. …lot of the actual value is in things like Docker Hub and Docker Desktop versus the runtime itself. https://github.com/p8952/bocker/blob/master/bocker
  25. It reminds me https://github.com/p8952/bocker or MichaelSoft Binbows [google images]
  26. check out bocker[1] for a tl;dr version (~100 lines of bash) without any unnecessary flavouring. 1. https://github.com/p8952/bocker
    comment by arpa · 2021-07-29 · in Life of a Container (2020)
  27. This reminds me of bocker. ( https://github.com/p8952/bocker ) A minimal docker in 100 lines of bash.
    comment by viraptor · 2021-05-20 · in “I Could Rewrite Curl”
  28. …handle is BASH-lund? I'm in love! <3 :-D Related: Bocker, Docker rewritten in 100 lines of Bash https://github.com/p8952/bocker
  29. …just sprinkles of housekeeping magic. To wit, Docker implemented in around 100 lines of bash: https://github.com/p8952/bocker Problems come when we think that today’s containers manage to actually contain anything, bring any security…
    comment by Terretta · 2021-03-19 · in Docker for Mac M1 RC
  30. Already done https://github.com/p8952/bocker/blob/master/README.md (Docker implemented in around 100 lines of bash.)
    comment by mirekrusin · 2021-03-16 · in We Don’t Use Docker
  31. …a new kind of tar file, some namespacing, some niceness, iptables, and some convenience aliases: https://github.com/p8952/bocker None of it’s magic, and none of it brings new security guarantees. There’s just the stuff hosts had, that’s…
  32. …basic grasp of those things, but still don't get how Docker uses them. > You should also study this https://github.com/p8952/bocker Cool! That's very usefl!
    comment by gspr · 2021-01-21 · in VSCode, Dev Containers and Docker
  33. …the venerable chroot)." Basically learn the basics (cgroups, namespaces) You should also study this https://github.com/p8952/bocker
    comment by kkapelon · 2021-01-21 · in VSCode, Dev Containers and Docker
  34. Reminded me of Docker in Bash: https://github.com/p8952/bocker
  35. true there is https://github.com/p8952/bocker .
  36. …Package managers are pretty good these days. I think I can trust it to install `jq` properly. [1]: https://github.com/p8952/bocker
    comment by johnsoft · 2020-12-27 · in Run More Stuff in Docker
  37. …That's essentially what docker is/did, and even though it can be recreated in a 100 lines of bash ( https://github.com/p8952/bocker ) the branding led to ~100,000 developers publishing containers that are fairly easy for anyone else to…
  38. Here's one in 100 lines of bash called, what else, "bocker": https://github.com/p8952/bocker
    comment by i_have_to_speak · 2020-06-18 · in Gocker: Docker implemented in 1.3k lines of Go
  39. …cgroups and namespacing from the kernel - something for which you don't need docker to do (see https://github.com/p8952/bocker ). docker solved the wrong problem, and poorly, imo: the packaging of dependencies required to run an app. and…
    comment by foxhill · 2020-05-30 · in Why is Kubernetes getting so popular?
  40. …of code. The function which corresponds to this post [1] is relatively short and readable. [0] https://github.com/p8952/bocker [1] https://github.com/p8952/bocker/blob/master/bocker#L61-L90
    comment by lidHanteyk · 2020-05-13 · in Linux containers in a few lines of code
  41. …of which come with Linux. The source is probably the best "deep dive" on containers I've found. https://github.com/p8952/bocker Docker thrives because of the repository of images, a great name, and some marketing. Runc thrives because it…
  42. …really discussed in this conversation at all either. Distribution. E.g. see this line of code: https://github.com/p8952/bocker/blob/master/bocker#L25 "But I thought bocker implements Docker?" It doesn't, it only attempts to implement the…
  43. …at bocker (docker-like in ~100 lines of bash). It makes it very clear what docker is, and isn't. https://github.com/p8952/bocker Specifically, the bocker_run function: https://github.com/p8952/bocker/blob/master/bocker#L61
  44. Stuff like https://github.com/p8952/bocker/blob/master/bocker#L94 is super dense. I might write that something like: cid="$( ps o ppid,pid | grep "^$( ps o pid,cmd | grep -E "^\ *[0-9]+ unshare.*$1" | awk '{print $1}' )" | awk '{print $2}'…
  45. Docker in ~100 lines of bash: https://github.com/p8952/bocker
  46. Bocker is a good resource to learn what containers actually are: https://github.com/p8952/bocker
    comment by tyingq · 2019-10-14 · in LXC 1.0 blog-post-series (2013)
  47. …or with a hosted provider, which is great for the industry but not so good for Docker. [1] https://github.com/p8952/bocker (Docker implemented in around 100 lines of bash)
    comment by toomuchtodo · 2019-05-08 · in Steve Singh stepping down as Docker CEO
  48. Bocker is similar for better understanding Linux containers. https://github.com/p8952/bocker
  49. I remember seeing that here actually. Docker in 100 lines of code. https://github.com/p8952/bocker
    comment by nazka · 2018-06-25 · in Docker Considered Harmful (2016)
  50. …and an image repository / builder to kill off Docker. See this for how small the gap really is: https://github.com/p8952/bocker/blob/master/README.md Basically, Docker has almost no moat. They have mostly only brand recognition. Not…