GithubHelp home page GithubHelp logo

17twenty / rubber-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fewbytes/rubber-docker

0.0 2.0 0.0 1.04 MB

A workshop on Linux containers: Rebuild Docker from Scratch

License: MIT License

Python 68.55% Shell 4.19% C 18.37% HTML 8.89%

rubber-docker's Introduction

Docker From Scratch Workshop

Preparatory Talk

The preparatory talk covers all the basics you'll need for this workshop, including: Linux syscalls and glibc wrappers, chroot vs pivot_root, namespaces, cgroups, capabilities and more.

The Workshop

Use the provided slides while advancing through the levels, adding more features to your container. Remember to go over each level's readme, and if things get rough - you can always find the solution for level N in level N+1 skeleton.

The linux python module

Not all the necessary system calls are exposed in python's standard library. In addition, we want to preserve the semantics of the system calls and use them as if we were writing C. We therefor wrote a python module called linux (take a look at linux.c) which exposes the relevant system calls. Have a look at the module documentation for more info.

Quickstart

There are currently 3 options to start the workshop by yourself:

  1. We created a public AMI with the required configuration and utilities already installed: ami-8faab0e3 (eu-west-1)
  2. We provide a packer template so you can create your own AMI
  3. We have a Vagrantfile for you to run using your favorite virtual machine hypervisor (NOTE: still not fully tested)

The workshop material in checked in /workshop on the instance:

  • /workshop/rubber-docker - this repository, this is where you work
  • /workshop/images - Images for containers, already populated with ubuntu and busybox images

Before starting the workshop, go over the prep docs in the docs folder.

Start the workshop at /workshop/rubber-docker/levels/00_fork_exec

rubber-docker's People

Contributors

nukemberg avatar natict avatar m1keil avatar aussielunix avatar

Watchers

Nick Glynn avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.