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. ▲ 398
    Bocker: Docker implemented in around 100 lines of Bash (2015)
    story by emersonrsantos · 2024-11-23 · 114 comments
  8. 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
  9. Also recommend this Docker implementation in around 100 lines of bash: https://github.com/p8952/bocker
  10. …120 lines of bash that implements the important bits of docker using nsenter, btrfs, cgcreate, etc. https://github.com/p8952/bocker/blob/master/bocker
  11. ▲ 2
    Show HN: Bocker-compose, the missing layer to Docker-compose
    story by satoqz · 2024-03-07 · 2 comments
  12. …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)
  13. Probably: https://github.com/p8952/bocker
  14. Reminds me of Bocker[0] [0]: https://github.com/p8952/bocker
  15. …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
  16. …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
  17. > 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…
  18. …many times but I think Bocker is pretty cool - Docker implemented in around 100 lines of bash (1) https://github.com/p8952/bocker
  19. 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
  20. …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
  21. …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…
  22. ▲ 315
    Bocker: Docker implemented in around 100 lines of Bash (2015)
    story by begoon · 2022-10-15 · 116 comments
  23. …way to learn more about this - Bocker, an implementation of docker in 119 lines of bash: https://github.com/p8952/bocker/blob/master/bocker
  24. > 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…
  25. slightly related: docker clone in 120 lines of bash - https://github.com/p8952/bocker/blob/master/bocker
  26. …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…
  27. …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
  28. It reminds me https://github.com/p8952/bocker or MichaelSoft Binbows [google images]
  29. 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)
  30. 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”
  31. …handle is BASH-lund? I'm in love! <3 :-D Related: Bocker, Docker rewritten in 100 lines of Bash https://github.com/p8952/bocker
  32. …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
  33. 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
  34. …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…
  35. …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
  36. …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
  37. Reminded me of Docker in Bash: https://github.com/p8952/bocker
  38. true there is https://github.com/p8952/bocker .
  39. …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
  40. …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…
  41. 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
  42. …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?
  43. ▲ 2
    Docker in ~100 Lines of Bash
    story by arpa · 2020-05-13 · 0 comments
  44. …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
  45. …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…
  46. ▲ 2
    bocker
    story by tosh · 2020-04-07 · 0 comments
  47. …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…
  48. …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
  49. ▲ 543
    Bocker – Docker implemented in around 100 lines of Bash (2015)
    story by sturza · 2020-02-05 · 196 comments
  50. 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}'…