{"id":13437485,"url":"https://github.com/oracle/railcar","last_synced_at":"2025-09-29T00:31:20.928Z","repository":{"id":41844433,"uuid":"95492579","full_name":"oracle/railcar","owner":"oracle","description":"RailCar: Rust implementation of the Open Containers Initiative oci-runtime","archived":true,"fork":false,"pushed_at":"2019-10-15T03:08:17.000Z","size":206,"stargazers_count":1114,"open_issues_count":18,"forks_count":101,"subscribers_count":52,"default_branch":"master","last_synced_at":"2024-04-26T08:34:23.913Z","etag":null,"topics":["containers","docker"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-26T21:51:40.000Z","updated_at":"2024-04-22T21:02:38.000Z","dependencies_parsed_at":"2022-07-13T11:20:34.493Z","dependency_job_id":null,"html_url":"https://github.com/oracle/railcar","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Frailcar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Frailcar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Frailcar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Frailcar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle","download_url":"https://codeload.github.com/oracle/railcar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219873912,"owners_count":16554528,"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","docker"],"created_at":"2024-07-31T03:00:57.608Z","updated_at":"2025-09-29T00:31:20.404Z","avatar_url":"https://github.com/oracle.png","language":"Rust","readme":"# `railcar` - rust implementation of the oci-runtime spec #\n\n![railcar](https://github.com/oracle/railcar/raw/master/railcar.png\n\"railcar\")\n\n## What is `railcar`? ##\n\n`railcar` is a rust implementation of the [opencontainers\ninitiative](https://www.opencontainers.org/)'s [runtime\nspec](https://github.com/opencontainers/runtime-spec). It is similar to the\nreference implementation `runc`, but it is implemented completely in rust for\nmemory safety without needing the overhead of a garbage collector or multiple\nthreads. For more information on the development of railcar, check out\n[Building a Container Runtime in\nRust](https://blogs.oracle.com/developers/building-a-container-runtime-in-rust)\n\n## Building `railcar` ##\n\n[![wercker status](https://app.wercker.com/status/730e874772dc02c6005f4ae4e42b0ca4/s/master \"wercker status\")](https://app.wercker.com/project/byKey/730e874772dc02c6005f4ae4e42b0ca4)\n\nInstall rust:\n\n    curl https://sh.rustup.rs -sSf | sh\n    cargo install cargo-when\n    rustup toolchain install stable-x86_64-unknown-linux-gnu\n    rustup default stable-x86_64-unknown-linux-gnu # for stable\n    rustup target install x86_64-unknown-linux-musl # for stable\n    rustup toolchain install nightly-x86_64-unknown-linux-gnu\n    rustup default nightly-x86_64-unknown-linux-gnu # for nightly\n    rustup target install x86_64-unknown-linux-musl # for nightly\n\nBuilding can be done via build.sh:\n\n    build.sh\n\nBy default, build.sh builds a dynamic binary using gnu. To build a static\nbinary, set `TARGET` to `x86_64-unknown-linux-musl`:\n\n    TARGET=x86_64-unknown-linux-musl ./build.sh\n\nBuild requirements for TARGET=x86_64-unknown-linux-gnu:\n\n    libseccomp-devel\n\nBuild requirements for TARGET=x86_64-unknown-linux-musl:\n\n    git submodule update --init\n    autotools\n    make\n    gcc\n    musl-gcc\n\nTo build a release version:\n\n    build.sh --release\n\nIf you build using stable instead of nightly, the set_name feature will be\ndisabled and the init process inside the container will not be named rc-init\nwhen viewed via ps or /proc/$pid/cmdline.\n\n## Using `railcar` ##\n\n    ./railcar run\n\nYou can specify a different bundle directory where your config.json is\nlocated with -b:\n\n    ./railcar -b /some/other/directory run\n\n## Using `railcar` with docker ##\n\n`railcar` can be used as a backend for docker. To use it, start the docker\ndaemon with an additional backend:\n\n    dockerd ... --experimental --add-runtime \"rc=/path/to/railcar\"\n\nThen you can use `railcar` by specifying the `rc` backend:\n\n    docker run -it --rm --runtime rc hello\n\nNote that you should start the daemon with a terminal (the -t option) so that\ndocker can properly collect stdout and stderr from `railcar`. If you want to\ndaemonize the container, just use:\n\n    docker run -dt --rm --runtime rc hello\n\n## Differences from `runc` ##\n\nIn general, `railcar` is very similar to `runc`, but some of the `runc`\ncommands are not supported. Currently, `railcar` does not support the following\ncommands:\n\n     checkpoint\n     events\n     exec\n     init\n     list\n     pause\n     restore\n     resume\n     spec\n\nAlso, `railcar` always runs an init process separately from the container\nprocess.\n\n## Contributing ##\n\n`railcar` is an open source project. See [CONTRIBUTING](CONTRIBUTING.md) for\ndetails.\n\nOracle gratefully acknowledges the contributions to railcar that have been made\nby the community.\n\n## Getting in touch ##\n\nThe best way to get in touch is Slack.\n\nClick [here](https://join.slack.com/t/oraclecontainertools/shared_invite/enQtMzIwNzg3NDIzMzE5LTIwMjZlODllMWRmNjMwZGM1NGNjMThlZjg3ZmU3NDY1ZWU5ZGJmZWFkOTBjNzk0ODIxNzQ2ODUyNThiNmE0MmI) to join the the [Oracle Container Tools workspace](https://oraclecontainertools.slack.com).\n\nThen join the [Railcar channel](https://oraclecontainertools.slack.com/messages/C8BP6MEA0).\n\n## License ##\n\nCopyright (c) 2017, Oracle and/or its affiliates. All rights reserved.\n\n`railcar` is dual licensed under the Universal Permissive License 1.0 and the\nApache License 2.0.\n\nSee [LICENSE](LICENSE.txt) for more details.\n","funding_links":[],"categories":["Applications","Rust","docker","containers","Containers","应用 Applications","应用","Runtimes \u0026 Platforms"],"sub_categories":["Virtualization","虚拟化 Virtualization","虚拟化"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle%2Frailcar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle%2Frailcar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle%2Frailcar/lists"}