clone-shim/README.md
Jake Hillion c511d12a5a
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
added mount namespace separation
2022-04-08 11:08:55 +01:00

24 lines
779 B
Markdown

# clone-shim
## Running the examples
### examples/basic
The basic example instructs the shim to spawn two processes, each of which writes "hello from main{1,2}!" to stdout.
To run this example:
cargo build
cargo build --example basic
sudo target/debug/clone-shim -s examples/basic/spec.json target/debug/examples/basic
### examples/pipes
The pipes example shows some of the power of the shim by using pipes. The process "pipe_sender" sends two messages down a pipe that it's given by the shim. These two messages each spawn a completely isolated process, "pipe_receiver", that receives that message.
To run this example:
cargo build
cargo build --example pipes
sudo target/debug/clone-shim -s examples/pipes/spec.json target/debug/examples/pipes