All Projects → oracle → Railcar

oracle / Railcar

Licence: other
RailCar: Rust implementation of the Open Containers Initiative oci-runtime

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Railcar

Nagios Plugins Linux
🐧 Nagios Plugins for Linux
Stars: ✭ 42 (-96.06%)
Mutual labels:  containers
Phobos
The standard library of the D programming language
Stars: ✭ 1,038 (-2.63%)
Mutual labels:  containers
Acs Engine
WE HAVE MOVED: Please join us at Azure/aks-engine!
Stars: ✭ 1,049 (-1.59%)
Mutual labels:  containers
Dockerfiles
Docker Projects Collection
Stars: ✭ 43 (-95.97%)
Mutual labels:  containers
Minit
minimalist init implementation for containers
Stars: ✭ 45 (-95.78%)
Mutual labels:  containers
Libpathrs
C-friendly API to make path resolution safer on Linux.
Stars: ✭ 47 (-95.59%)
Mutual labels:  containers
Clair
Vulnerability Static Analysis for Containers
Stars: ✭ 8,356 (+683.86%)
Mutual labels:  containers
Devops Exercises
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions
Stars: ✭ 20,905 (+1861.07%)
Mutual labels:  containers
Nff Go
NFF-Go -Network Function Framework for GO (former YANFF)
Stars: ✭ 1,036 (-2.81%)
Mutual labels:  containers
Bitnami Docker Tensorflow Serving
Bitnami Docker Image for TensorFlow Serving
Stars: ✭ 49 (-95.4%)
Mutual labels:  containers
Giropops Monitoring
Full stack tools for monitoring containers and other stuff. ;)
Stars: ✭ 1,019 (-4.41%)
Mutual labels:  containers
Kapo
Wrap any command in a status socket
Stars: ✭ 45 (-95.78%)
Mutual labels:  containers
Docker Redmine
Docker Image for Redmine
Stars: ✭ 1,044 (-2.06%)
Mutual labels:  containers
Drupal Nginx Php Kubernetes
Demonstration of a set of NGINX and PHP-FPM containers running Drupal deployed to Kubernetes on the IBM Container Service. This is a work in progress.
Stars: ✭ 43 (-95.97%)
Mutual labels:  containers
Runc
CLI tool for spawning and running containers according to the OCI specification
Stars: ✭ 8,729 (+718.86%)
Mutual labels:  containers
Cilium
eBPF-based Networking, Security, and Observability
Stars: ✭ 10,256 (+862.1%)
Mutual labels:  containers
Bitrix24 Docker
Docker веб-окружение для разработки решений на базе 1С-Битрикс Корпоративный портал
Stars: ✭ 47 (-95.59%)
Mutual labels:  containers
Kata Containers
Kata Containers version 2.x repository. Kata Containers is an open source project and community working to build a standard implementation of lightweight Virtual Machines (VMs) that feel and perform like containers, but provide the workload isolation and security advantages of VMs. https://katacontainers.io/
Stars: ✭ 1,053 (-1.22%)
Mutual labels:  containers
Origin
Conformance test suite for OpenShift
Stars: ✭ 8,046 (+654.78%)
Mutual labels:  containers
Browncoat
Container for testing app failures in orchestrators. It aims to misbehave.
Stars: ✭ 49 (-95.4%)
Mutual labels:  containers

railcar - rust implementation of the oci-runtime spec

railcar

What is railcar?

railcar is a rust implementation of the opencontainers initiative's runtime spec. It is similar to the reference implementation runc, but it is implemented completely in rust for memory safety without needing the overhead of a garbage collector or multiple threads. For more information on the development of railcar, check out Building a Container Runtime in Rust

Building railcar

wercker status

Install rust:

curl https://sh.rustup.rs -sSf | sh
cargo install cargo-when
rustup toolchain install stable-x86_64-unknown-linux-gnu
rustup default stable-x86_64-unknown-linux-gnu # for stable
rustup target install x86_64-unknown-linux-musl # for stable
rustup toolchain install nightly-x86_64-unknown-linux-gnu
rustup default nightly-x86_64-unknown-linux-gnu # for nightly
rustup 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 static binary, 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 --init
autotools
make
gcc
musl-gcc

To build a release version:

build.sh --release

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

Using railcar

./railcar run

You can specify a different bundle directory where your config.json is located 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 docker daemon 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 that docker can properly collect stdout and stderr from railcar. If you want to daemonize 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 runc commands are not supported. Currently, railcar does not support the following commands:

 checkpoint
 events
 exec
 init
 list
 pause
 restore
 resume
 spec

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

Contributing

railcar is an open source project. See CONTRIBUTING for details.

Oracle gratefully acknowledges the contributions to railcar that have been made by 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 the Apache License 2.0.

See LICENSE for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].