• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

railcar: Railcar 是 Oracle 发布的基于Rust的OCI运行时规范实现

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

railcar

开源软件地址:

https://gitee.com/mirrors/railcar

开源软件介绍:

railcar - rust implementation of the oci-runtime spec

railcar

What is railcar?

railcar is a rust implementation of the opencontainersinitiative's runtimespec. It is similar to thereference implementation runc, but it is implemented completely in rust formemory safety without needing the overhead of a garbage collector or multiplethreads. For more information on the development of railcar, check outBuilding a Container Runtime inRust

Building railcar

wercker status

Install rust:

curl https://sh.rustup.rs -sSf | shcargo install cargo-whenrustup toolchain install stable-x86_64-unknown-linux-gnurustup default stable-x86_64-unknown-linux-gnu # for stablerustup target install x86_64-unknown-linux-musl # for stablerustup toolchain install nightly-x86_64-unknown-linux-gnurustup default nightly-x86_64-unknown-linux-gnu # for nightlyrustup target install x86_64-unknown-linux-musl # for nightly

Building can be done via build.sh:

build.sh

By default, build.sh builds a dynamic binary using gnu. To build a staticbinary, set TARGET to x86_64-unknown-linux-musl:

TARGET=x86_64-unknown-linux-musl ./build.sh

Build requirements for TARGET=x86_64-unknown-linux-gnu:

libseccomp-devel

Build requirements for TARGET=x86_64-unknown-linux-musl:

git submodule update --initautotoolsmakegccmusl-gcc

To build a release version:

build.sh --release

If you build using stable instead of nightly, the set_name feature will bedisabled and the init process inside the container will not be named rc-initwhen viewed via ps or /proc/$pid/cmdline.

Using railcar

./railcar run

You can specify a different bundle directory where your config.json islocated with -b:

./railcar -b /some/other/directory run

Using railcar with docker

railcar can be used as a backend for docker. To use it, start the dockerdaemon with an additional backend:

dockerd ... --experimental --add-runtime "rc=/path/to/railcar"

Then you can use railcar by specifying the rc backend:

docker run -it --rm --runtime rc hello

Note that you should start the daemon with a terminal (the -t option) so thatdocker can properly collect stdout and stderr from railcar. If you want todaemonize the container, just use:

docker run -dt --rm --runtime rc hello

Differences from runc

In general, railcar is very similar to runc, but some of the runccommands are not supported. Currently, railcar does not support the followingcommands:

 checkpoint events exec init list pause restore resume spec

Also, railcar always runs an init process separately from the containerprocess.

Contributing

railcar is an open source project. See CONTRIBUTING fordetails.

Oracle gratefully acknowledges the contributions to railcar that have been madeby the community.

Getting in touch

The best way to get in touch is Slack.

Click here to join the the Oracle Container Tools workspace.

Then join the Railcar channel.

License

Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.

railcar is dual licensed under the Universal Permissive License 1.0 and theApache License 2.0.

See LICENSE for more details.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
mybatis_generator_gradle_plugin: mybatis生成器gradle插件发布时间:2022-03-24
下一篇:
springboot-jpa: 自定义实现Hibernate注释注解发布时间:2022-03-24
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap