Live data from Hacker News

Bocker: Docker implemented in around 100 lines of Bash (2015)

github.com

11–20 of 122 posts

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#12
post #7

Woah! Don't know if it can be used as a proper Docker replacement (probably not), but I sure do appreciate the project as an example of how to use all the tools to implement an isolated environment. And the fact that it actually works with Docker containers (well, why wouldn' it, but still) is just a cheery on top!

A cheer for the cheery!

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#13
Really this is more interesting as a great tutorial on the way Linux container tools work (and especially their fundamental simplicity -- the docs make them seem scary when they really aren't) more than it is as a docker replacement (docker is obviously much larger than this one script, but not really "large" as a software stack).

But reading this makes clear that, yes, containers are just filesystem trees, network namespaces are just like internal networks maintained by straightforward commands underneath an "ip netns" command, etc...

Great stuff.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#14
post #3

It looks like it relies on BtrFS? Can anyone add support for OverlayFS 2? :) which I think is more deployed these days due to Docker itself I’d be curious to see how it looks

With overlays, you'd need some kind of registry of all the images in the underlying filesystem. Btrfs subvolumes give that to you for free, essentially. No need for deciding where to put them, just give them a name.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#17
post #16
post #15

This is amazing! Does GitHub allow emoji names? I’d love it to be called 🅱ocker

Why do you need an emoji for the letter ‘B’?

That emoji exists because of the blood type.

🅰🅱🆎🅾

There was a meme a while back where people would use 🅱 all over the place. Not sure why it was funny but it was.

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#19
post #16

Earlier quoted context omitted.

Why do you need an emoji for the letter ‘B’?

That emoji exists because of the blood type. 🅰🅱🆎🅾 There was a meme a while back where people would use 🅱 all over the place. Not sure why it was funny but it was.

That’s not what I’m asking. I was asking why they need an emoji to write “Bocker”

Re: Bocker: Docker implemented in around 100 lines of Bash (2015)

#20
post #19

Earlier quoted context omitted.

That emoji exists because of the blood type. 🅰🅱🆎🅾 There was a meme a while back where people would use 🅱 all over the place. Not sure why it was funny but it was.

That’s not what I’m asking. I was asking why they need an emoji to write “Bocker”

It's a meme
Post reply on HN