Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

prattmic/gvrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gvrun: simple sandboxing with gVisor

gvrun is a rudimentary wrapper around gVisor's runsc that allows simple sandboxing of local workloads without a container image.

gvrun is intended only for running very simple workloads. Workloads running in gvrun are given access only to the binary itself, the current working directory, and a few critical system libraries (like libc). As a result, many workloads will not work out-of-the-box with gvrun. More complex workloads are likely better off running in a Docker container with runsc.

Workloads have no host filesystem write access (all writes are in-memory only) and no network access.

Getting Started

  1. Build gvrun with go build.

  2. Download or build a copy of runsc. Note that only the runsc binary is required, not any Docker or containerd configuration.

  3. Run a workload: sudo /path/to/gvrun -runsc /path/to/runsc /bin/echo hello world.

Note that gvrun must be run with sudo, as gVisor requires root permissions to set up the sandbox.

About

Simple sandboxing with gVisor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages