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
20082026
-
…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 -
…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,…
comment by Terretta · 2026-03-02 · in Anthropic Cowork feature creates 10GB VM bundle on macOS without warning -
Bocker, docker in 100 lines of bash https://github.com/p8952/bocker
comment by aussieguy1234 · 2025-09-16 · in How Container Filesystem Works: Building a Docker-Like Container from Scratch -
…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 -
…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 -
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…
comment by aussieguy1234 · 2025-04-10 · in The chroot Technique – a Swiss army multitool for Linux systems -
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 -
Also recommend this Docker implementation in around 100 lines of bash: https://github.com/p8952/bocker
comment by belter · 2024-06-04 · in Deep Diving into Docker and Containers: What It Is and How It Works -
…120 lines of bash that implements the important bits of docker using nsenter, btrfs, cgcreate, etc. https://github.com/p8952/bocker/blob/master/bocker
comment by tyingq · 2024-04-12 · in Building a Linux Container Using Namespaces: Part – 1 (2020) -
…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)
comment by nedt · 2023-08-07 · in Barco: Linux Containers from Scratch in C -
Probably: https://github.com/p8952/bocker
comment by lcvln · 2023-08-07 · in Barco: Linux Containers from Scratch in C -
Reminds me of Bocker[0] [0]: https://github.com/p8952/bocker
comment by nigma1337 · 2023-06-27 · in Build your own Docker with Linux namespaces, cgroups, and chroot -
…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 -
…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 -
> 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…
comment by Terretta · 2023-01-29 · in Ask HN: What is the best source to learn Docker in 2023? -
…many times but I think Bocker is pretty cool - Docker implemented in around 100 lines of bash (1) https://github.com/p8952/bocker
comment by superasn · 2022-11-26 · in Ask HN: What is the coolest thing you have seen done with a bash script? -
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 -
…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 -
…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…
comment by cyansmoker · 2022-10-17 · in Bocker: Docker implemented in around 100 lines of Bash (2015) -
…way to learn more about this - Bocker, an implementation of docker in 119 lines of bash: https://github.com/p8952/bocker/blob/master/bocker
comment by jamal-kumar · 2022-06-22 · in Permissive forwarding rule leads to unintentional exposure of containers (2021) -
> 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…
comment by rollcat · 2022-06-05 · in Painless desktop containers for everyday development -
slightly related: docker clone in 120 lines of bash - https://github.com/p8952/bocker/blob/master/bocker
comment by black3r · 2022-03-10 · in Linux containers in 500 lines of code (2016) -
…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…
comment by jasode · 2022-01-31 · in Gains I'm seeing from my second brain tool -
…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
comment by tyingq · 2021-12-08 · in Digging into Linux namespaces – part 1 -
It reminds me https://github.com/p8952/bocker or MichaelSoft Binbows [google images]
comment by tester756 · 2021-10-28 · in Ask HN: Meta Question Does FAANG Become Maang or Manga? -
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) -
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” -
…handle is BASH-lund? I'm in love! <3 :-D Related: Bocker, Docker rewritten in 100 lines of Bash https://github.com/p8952/bocker
comment by john-tells-all · 2021-04-02 · in Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script -
…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 -
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 -
…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…
comment by Terretta · 2021-02-14 · in Threat Actors Now Target Docker via Container Escape Features -
…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 -
…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 -
Reminded me of Docker in Bash: https://github.com/p8952/bocker
comment by tym0 · 2020-12-29 · in Show HN: Vas-quod – A minimal Linux container runtime written in Rust -
true there is https://github.com/p8952/bocker .
comment by flhoc · 2020-12-29 · in Show HN: Vas-quod – A minimal Linux container runtime written in Rust -
…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 -
…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…
comment by snickell · 2020-12-15 · in Fractal Architectures: A Software Craftsman's take to Infrastructure as Code -
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 -
…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? -
…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 -
…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…
comment by tyingq · 2020-04-28 · in Deep dive into runc and OCI specifications -
…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…
comment by cle · 2020-04-07 · in Containers vs. Zones vs. Jails vs. VMs (2017) -
…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
comment by tyingq · 2020-04-07 · in Containers vs. Zones vs. Jails vs. VMs (2017) -
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}'…
comment by fwip · 2020-02-04 · in Linux containers in 500 lines of code (2016) -
Docker in ~100 lines of bash: https://github.com/p8952/bocker
comment by arpa · 2020-02-04 · in Linux containers in 500 lines of code (2016) -
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) -
…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 -
Bocker is similar for better understanding Linux containers. https://github.com/p8952/bocker
comment by tyingq · 2019-04-13 · in I got tired of PHP and Perl, so I tried bash -
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) -
…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…
comment by tyingq · 2018-04-02 · in A Workshop on Linux Containers: Rebuild Docker from Scratch