{"id":13449385,"url":"https://github.com/Fewbytes/rubber-docker","last_synced_at":"2025-03-22T22:32:57.955Z","repository":{"id":38352704,"uuid":"51521617","full_name":"Fewbytes/rubber-docker","owner":"Fewbytes","description":"A workshop on Linux containers: Rebuild Docker from Scratch","archived":false,"fork":false,"pushed_at":"2022-12-10T04:27:19.000Z","size":1317,"stargazers_count":2891,"open_issues_count":20,"forks_count":224,"subscribers_count":72,"default_branch":"master","last_synced_at":"2024-05-22T11:33:18.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fewbytes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-11T14:55:19.000Z","updated_at":"2024-05-12T20:48:56.000Z","dependencies_parsed_at":"2023-01-25T20:30:31.988Z","dependency_job_id":null,"html_url":"https://github.com/Fewbytes/rubber-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fewbytes%2Frubber-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fewbytes%2Frubber-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fewbytes%2Frubber-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fewbytes%2Frubber-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fewbytes","download_url":"https://codeload.github.com/Fewbytes/rubber-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221840637,"owners_count":16889834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T06:00:36.806Z","updated_at":"2024-10-28T14:30:53.328Z","avatar_url":"https://github.com/Fewbytes.png","language":"Python","readme":"# Docker From Scratch Workshop\n\n\n## Preparatory Talk\n[The preparatory talk](https://docs.google.com/presentation/d/10vFQfEUvpf7qYyksNqiy-bAxcy-bvF0OnUElCOtTTRc/edit?usp=sharing)\ncovers all the basics you'll need for this workshop, including:\n- Linux syscalls and glibc wrappers\n- chroot vs pivot_root\n- namespaces\n- cgroups\n- capabilities\n- and more\n\n## The Workshop\nUse [the provided slides](https://github.com/Fewbytes/rubber-docker/tree/master/slides) while advancing through the levels, adding more features to your container.\nRemember to go over each level's readme, and if things get rough -\nyou can always find the solution for level N in the level N+1 skeleton.\n\n## The linux python module\nNot all the necessary system calls are exposed in python's standard library.\nIn addition, we want to preserve the semantics of the system calls and use them as if we were writing C.\nWe therefore wrote a python module called *linux* (take a look at [linux.c](linux.c)) which exposes the relevant system calls. \nHave a look at the [module documentation](https://rawgit.com/Fewbytes/rubber-docker/master/docs/linux/index.html) for more info.\n\n## Quickstart\nThere are currently 3 options to start the workshop by yourself:\n 1. We created a public AMI with the required configuration and utilities\n    already installed:\n    | Region | AMI |\n    |--------|-----|\n    | eu-central-1 | `ami-041c4af571b01d0f8` |\n    | il-central-1 | `ami-036406540dcc4a690` |\n    | us-east-1 | `ami-0cb446a6fd2678063` |\n    | us-west-1 | `ami-0defd345b84194d79` |\n 1. We provide a [packer template](https://www.packer.io/) so you can create\n    your own AMI.\n 1. We have a [Vagrantfile](https://www.vagrantup.com/) for you to run using\n    your favorite virtual machine hypervisor (NOTE: not yet fully tested).\n\nThe workshop material is checked out at `/workshop` on the instance:\n- `/workshop/rubber-docker` - this repository, where you do all the work\n- `/workshop/images` - images for containers, already populated with ubuntu and busybox images\n\nBefore starting the workshop, go over the prep docs in the `docs` folder.\n\nStart the workshop at `/workshop/rubber-docker/levels/00_fork_exec`.\n\n## Dev environment\nIf you need to build and install the `linux` module:\n\n```sh\nmake install \n```\n\nIf you want a distributable wheel package:\n```sh\nmake build\n```\n\n\n# PR stuff\nThis workshop has been publicly given in many places starting February 2016.\n\n- Opstalk meetup, Tel-Aviv, February 2016\n- DevOps Sydney meetup, Sydney, June 2016\n- DevOpsDays Amsterdam, Amsterdam, June 2016\n- SRECon EU, Dublin, July 2016\n- Sela Developer Practice, Tel-Aviv, June 2016\n- SRECon US, Santa Clara, March 2018\n- DevOpsDays Kiel, Kiel, May 2018\n\n# FAQ\n### Why did you create this?\nBecause we feel the only way to truly understand something to build it from scratch - and Linux containers are a very hyped and poorly understood technology\n\n### Can I use this repository to conduct my own public/private workshop?\nOf course! If you do, please consider letting us know on Twitter (@nukemberg and @nocoot) and of course send feedback.\n\n### This workshop doesn't cover seccomp/user containers/whatever\nYes, no way we can cover the entire featureset of a real container engine. We tried to concentrate on thing we believe are important for understanding how containers work\n\n### I found a bug!\nSee contributions below\n\n\n# Contributions\nContributions are welcome! If you found a bug or something to improve feel free to open an issue or a pull request. Please note that the entire repository is under MIT license and your contribution will be under that license.\n\n# Sponsors\nWe'd like to thank our friends at [Strigo.io](http://strigo.io/) for kindly providing their platform, and allowing us to deliver this and other workshops without worrying about infrastructure.\nIf you plan to deliver this workshop yourself, we highly encourage you to [contact them](contact@strigo.io).\n","funding_links":[],"categories":["Python","🔮学完docker或许你可以试试这些","Tutorials","Virtualization"],"sub_categories":["建立你自己的`Docker`","Containers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFewbytes%2Frubber-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFewbytes%2Frubber-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFewbytes%2Frubber-docker/lists"}