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

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. bocker

    Docker implemented in around 100 lines of bash

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. metal-cell

    Here's a proof of concept for a intra-cluster load balancer in 40 lines of bash done during a hackathon I organized to promote distributed infra with Docker, Mesos, etc. about a decade ago https://github.com/cell-os/metal-cell/blob/master/discovery/...

    I likely lost it, but I had a redundand and distributed reverse SSH tunnel based colo-to-cloud transfer tool.

    Shell Fu and others have good collections of these https://www.shell-fu.org/

  4. rootlesskit

    Linux-native "fake root" for implementing rootless containers

    Yes, from the README:

    > Bocker runs as root and among other things needs to make changes to your network interfaces, routing table, and firewall rules. I can make no guarantees that it won't trash your system.

    Linux makes it quite hard to run "containers" as an unprivileged user. Not impossible! https://github.com/rootless-containers/rootlesskit is one approach and demonstrates much of the difficulty involved. Networking is perhaps the most problematic. Your choices are either setuid binaries (so basically less-root as opposed to root-less anymore) or usermode networking. slirp4netns is the state of the art here as far as I know, but not without security and performance tradeoffs.

  5. bag

    Docker in 600 lines of bash using proot (by hkoosha)

    I did something (slightly) similar via proot, called Bag [1], which I must have not described as a docker alternative: It has nothing to do with cgroups, and the cli deviates from that of docker's.

    The backstory: To bypass internet censorship and deep packet inspection, I had written a proxy chain solution masquerading itself as plain html traffic. I needed it constantly running everywhere I went, but I didn't want to port it to a native android app. I wanted to run it through termux and at the time termux had no jdk/jre. Proot could spawn a archlinux env and there indeed was a jdk available.

    The arch env within termux turned out to be generally more suitable for all tasks. Creating and destroying ephemeral envs with different setups and prooting into them to just run a single command is easily automated with a script; I named it bag.sh, a drastically smaller form of a shipping container.

    Funny bag.sh also has a roadmap/todo in there untouched for 5 years! It's written on mobile screen hence mostly formatted to 40 columns lines to fit on the display without scrolling.

    [1]: https://github.com/hkoosha/bag

  6. bastille

    Bastille is an open-source system for automating deployment and management of containerized applications on FreeBSD.

    A brother from another mother: https://bastillebsd.org/ Bastille manages jails using shell with many of the same constructs you'd find in docker. I like it over other jail management software in BSD because it has so few dependencies.

  7. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Kleene as a Container Management Platform for FreeBSD

    1 project | news.ycombinator.com | 18 Feb 2025
  • BastilleBSD

    1 project | /r/devopsish | 27 May 2023
  • Bastille – System for automating deployment and management of FreeBSD containers

    1 project | news.ycombinator.com | 26 May 2023
  • Bastille – Open-source system for automating management of containers on FreeBSD

    1 project | news.ycombinator.com | 26 May 2023
  • pf/opn sense best LINUX alternative

    1 project | /r/selfhosted | 22 Feb 2023

Did you know that Shell is
the 11th most popular programming language
based on number of references?