{"id":18055799,"url":"https://github.com/willdurand/containers","last_synced_at":"2025-04-11T02:02:32.436Z","repository":{"id":36963105,"uuid":"499818979","full_name":"willdurand/containers","owner":"willdurand","description":"📦 This is a repository with some code I wrote to learn more about containers.","archived":false,"fork":false,"pushed_at":"2023-04-04T21:15:54.000Z","size":405,"stargazers_count":9,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T23:27:20.468Z","etag":null,"topics":["containers","educational-project"],"latest_commit_sha":null,"homepage":"https://williamdurand.fr/2022/06/21/deep-dive-into-containers/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willdurand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-04T12:24:49.000Z","updated_at":"2024-06-03T19:43:26.000Z","dependencies_parsed_at":"2024-06-19T05:42:16.233Z","dependency_job_id":null,"html_url":"https://github.com/willdurand/containers","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willdurand%2Fcontainers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willdurand%2Fcontainers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willdurand%2Fcontainers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willdurand%2Fcontainers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willdurand","download_url":"https://codeload.github.com/willdurand/containers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328160,"owners_count":21085261,"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":["containers","educational-project"],"created_at":"2024-10-31T01:11:57.100Z","updated_at":"2025-04-11T02:02:32.403Z","avatar_url":"https://github.com/willdurand.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# containers\n\n[![CI](https://github.com/willdurand/containers/actions/workflows/ci.yml/badge.svg)](https://github.com/willdurand/containers/actions/workflows/ci.yml)\n\nThis is a repository with some code I wrote to **learn** more about containers. It currently contains:\n\n- [`yacr`](./cmd/yacr/README.md): a container runtime that implements the [runtime-spec][]\n- [`yacs`](./cmd/yacs/README.md): a container shim with an (HTTP) API\n- [`yaman`](./cmd/yaman/README.md): a container manager that leverages the two previous tools\n- [`microvm`][microvm]: a container runtime that uses micro Virtual Machines (VMs)\n\nFor more information, please refer to the documentation of each sub-project.\n\n[![asciicast](https://asciinema.org/a/vdC2zxvyHSubTHuAPDt3g2T21.svg)](https://asciinema.org/a/vdC2zxvyHSubTHuAPDt3g2T21)\n\nWant to give it a quick try? [Open this project in Gitpod](https://gitpod.io/#https://github.com/willdurand/containers)!\n\n## Building this project\n\nThis project requires a Linux environment and the following dependencies:\n\n- `fuse-overlayfs` for rootless containers\n- `uidmap` for rootless containers\n- `slirp4netns` for the network layer (rootfull and rootless containers)\n- `bats`, `netcat`, `jq` and `runc` for the integration tests\n- `tap` (or `node-tap`) for the OCI comformance tests\n\nFor the [`microvm`][microvm] runtime, this project also requires:\n\n- `bison`, `flex`, `libelf-dev` to build the Linux kernel\n- `qemu-system`\n\nYou should either use Gitpod as mentioned in the previous section or [Vagrant][]. It might not be a good idea to run this project on your actual machine.\n\nThe easiest and quickest way to get started is to build all sub-projects:\n\n```console\n$ make all\n$ sudo make install\n```\n\nOptional step: run `sudo make install_completion` to enable `bash` auto-completion.\n\n### Vagrant\n\nThis project can be used with [Vagrant][] to set up a Linux virtual machine. This is recommended as opposed to trying out the different tools on your actual Linux system.\n\n```console\n$ vagrant up \u0026\u0026 vagrant ssh\n```\n\nFrom there, you can `cd /vagrant` and follow the instruction to build the project (previous section).\n\n### bash auto-completion on Linux\n\nYou can also enable completion for `yacr` and `yaman`.\n\nYou must have the `bash-completion` package installed first and you should possibly source `/usr/share/bash-completion/bash_completion` in your bash configuration (`~/.bashrc`). When `type _init_completion` in your shell returns some content, you're all set.\n\nYou can now install the completion files:\n\n```console\n$ sudo make install_completion\n```\n\nAfter reloading your shell, `yacr` and `yaman` autocompletion should be working.\n\n## License\n\nSee [`LICENSE.txt`](./LICENSE.txt)\n\n[runtime-spec]: https://github.com/opencontainers/runtime-spec\n[vagrant]: https://www.vagrantup.com/\n[microvm]: ./cmd/microvm/README.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilldurand%2Fcontainers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilldurand%2Fcontainers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilldurand%2Fcontainers/lists"}