{"id":17201393,"url":"https://github.com/timwspence/codecrafters-docker-rust","last_synced_at":"2025-03-25T09:13:06.267Z","repository":{"id":87371408,"uuid":"601663682","full_name":"TimWSpence/codecrafters-docker-rust","owner":"TimWSpence","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-21T11:01:38.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T08:24:01.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimWSpence.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-14T14:54:35.000Z","updated_at":"2023-02-17T11:50:01.000Z","dependencies_parsed_at":"2023-03-27T13:03:59.950Z","dependency_job_id":null,"html_url":"https://github.com/TimWSpence/codecrafters-docker-rust","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/TimWSpence%2Fcodecrafters-docker-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimWSpence%2Fcodecrafters-docker-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimWSpence%2Fcodecrafters-docker-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimWSpence%2Fcodecrafters-docker-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimWSpence","download_url":"https://codeload.github.com/TimWSpence/codecrafters-docker-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245431726,"owners_count":20614184,"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-10-15T02:11:45.060Z","updated_at":"2025-03-25T09:13:06.241Z","avatar_url":"https://github.com/TimWSpence.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![progress-banner](https://app.codecrafters.io/progress/docker/44b0edba-d7b8-425f-8e72-4fae16bcd7f5)](https://app.codecrafters.io/users/TimWSpence)\n\nThis is a starting point for Rust solutions to the\n[\"Build Your Own Docker\" Challenge](https://codecrafters.io/challenges/docker).\n\nIn this challenge, you'll build a program that can pull an image from\n[Docker Hub](https://hub.docker.com/) and execute commands in it. Along the way,\nwe'll learn about [chroot](https://en.wikipedia.org/wiki/Chroot),\n[kernel namespaces](https://en.wikipedia.org/wiki/Linux_namespaces), the\n[docker registry API](https://docs.docker.com/registry/spec/api/) and much more.\n\n**Note**: If you're viewing this repo on GitHub, head over to\n[codecrafters.io](https://codecrafters.io) to try the challenge.\n\n# Passing the first stage\n\nThe entry point for your Docker implementation is `src/main.rs`. Study and\nuncomment the relevant code, and push your changes to pass the first stage:\n\n```sh\ngit add .\ngit commit -m \"pass 1st stage\" # any msg\ngit push origin master\n```\n\nThat's all!\n\n# Stage 2 \u0026 beyond\n\nNote: This section is for stages 2 and beyond.\n\nYou'll use linux-specific syscalls in this challenge. so we'll run your code\n_inside_ a Docker container.\n\nPlease ensure you have [Docker installed](https://docs.docker.com/get-docker/)\nlocally.\n\nNext, add a [shell alias](https://shapeshed.com/unix-alias/):\n\n```sh\nalias mydocker='docker build -t mydocker . \u0026\u0026 docker run --cap-add=\"SYS_ADMIN\" mydocker'\n```\n\n(The `--cap-add=\"SYS_ADMIN\"` flag is required to create\n[PID Namespaces](https://man7.org/linux/man-pages/man7/pid_namespaces.7.html))\n\nYou can now execute your program like this:\n\n```sh\nmydocker run ubuntu:latest /usr/local/bin/docker-explorer echo hey\n```\n\nThis command compiles your Rust project, so it might be slow the first time you\nrun it. Subsequent runs will be fast.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwspence%2Fcodecrafters-docker-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimwspence%2Fcodecrafters-docker-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwspence%2Fcodecrafters-docker-rust/lists"}