Bocker

Dev tools

container runtime

SHOW HN2015

Legend

Bocker

Docker implemented in 100 lines of bash

github.com

#docker#bash#containers#btrfs#namespaces

662points
87comments
#12of 2,565 in 2015
Top 1%of 2015 by points

How HN took it

MixedNo clear lean

13 positive, 13 neutral or asking, 2 mixed, 4 critical, out of 32 comments about the project. Thread score +0.27.

Execution: 3 for, 2 againstIdea: 5 for, 0 againstDesign: 1 for, 1 againstPricing: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple and educational demonstration of container basics

    From 3 comments
    • Using btrfs subvolumes as the image format, that's a nice touch. On the same road as the hypothetical systemd packaging system (not that I'm very enthusiastic about that). The…
      vezzy-fnord on HN
    • Just playing with this in a VM with an attached btrfs volume, a complete revelation. 96 lines! And it's actually pretty functional. This takes keeping it simple to a whole new…
      tobbyb on HN
    • When the abstractions are right, things fall out almost for free. Kudos for attempting this, made me smile from ear to ear.
      agumonkey on HN
  • Good use of btrfs subvolumes as image format

    From 2 comments
    • Using btrfs subvolumes as the image format, that's a nice touch. On the same road as the hypothetical systemd packaging system (not that I'm very enthusiastic about that). The…
      vezzy-fnord on HN
    • Nice work. Great to see the advanced features of BTRFS put to use.
      WD-42 on HN

Objections

  • Does not implement Docker's packaging format, which is most of its value

    From 2 comments
    • Wow, Docker in 100 lines! It runs as root? Oh. It is written in bash? Oh. It needs a ton of manual setup? Oh. It doesn't actually implement the package format which is most of…
      pekk on HN
    • Yes. The basic technology has been there for a while. And the Docker source code has some eyebrow-raising parts to it. However, I've stated this in other threads: Docker isn't…
      hosh on HN
  • Runs as root and needs manual setup

    From 1 comment
    • Wow, Docker in 100 lines! It runs as root? Oh. It is written in bash? Oh. It needs a ton of manual setup? Oh. It doesn't actually implement the package format which is most of…
      pekk on HN
  • Hardcoded DNS resolv.conf setup is poor practice

    From 1 comment
    • I thought puppet/chef were the pit of the devops ridicule. Then I not only saw this, but also positive reactions to a readable code in which you have : ``` echo 'nameserver…
      SFjulie1 on HN

Requests

  • Support for user namespaces and unprivileged containers

    From 1 comment
    • Just playing with this in a VM with an attached btrfs volume, a complete revelation. 96 lines! And it's actually pretty functional. This takes keeping it simple to a whole new…
      tobbyb on HN
  • Overlayfs as alternative to btrfs

    From 2 comments
    • Just playing with this in a VM with an attached btrfs volume, a complete revelation. 96 lines! And it's actually pretty functional. This takes keeping it simple to a whole new…
      tobbyb on HN
    • not sure if you ever saw this - https://www.phoronix.com/scan.php?page=news_item&px=CoreOS-Btrfs-To-EXT4-OverlayFS it might be interesting to see a version of your script using…
      sandGorgon on HN
  • GPG-signed push and pull of images

    From 1 comment
    • Add support for GPG-signed `btrfs pull` and `btrfs push` and I'm totally sold! I've been working on something similar to this but on top of systemd-nspawn, which already does…
      arianvanp on HN

Questions

  • How the command in the .cmd file gets executed

    From 1 comment
    • I'm missing something, what actually "executes" the command here echo "$2" > "$btrfs_path/$uuid/$uuid.cmd" Is something watching for .cmd? Is this some behavior of util-linux…
      spydum on HN

Alternatives named

  • LXC

    From 2 comments
    • Just playing with this in a VM with an attached btrfs volume, a complete revelation. 96 lines! And it's actually pretty functional. This takes keeping it simple to a whole new…
      tobbyb on HN
    • Not really, Nspawn is extremely promising and is developing fast. Systemd 220 adds support for user namespaces so you can run nspawn containers as non root users. But containers…
      tobbyb on HN
  • systemd-nspawn

    From 2 comments
    • Systemd-nspawn is way easier to use than LXC imo in that it replicates the simplicity of chroot with the power of cgroups. The security story is unfinished though.
      XorNot on HN
    • Not really, Nspawn is extremely promising and is developing fast. Systemd 220 adds support for user namespaces so you can run nspawn containers as non root users. But containers…
      tobbyb on HN
  • dockerlite

    From 1 comment
    • There's also https://github.com/docker/dockerlite . But not sure how current it is.
      asdfaoeu on HN
  • Guix

    From 1 comment
    • Debian and Fedora do packaging better than Docker, relatively speaking, but they still have major issues that have lead to "solutions" like Docker, Chef/Omnibus, etc. They…
      davexunit on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/9925896)