Skip to content

laphets/gvisor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9,892 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gVisor

This branch is a synthetic branch, containing only Go sources, that is compatible with standard Go tools. See the master branch for authoritative sources and tests.

Run

See run.sh for build and use runsc in docker.

The runs.sh will build runsc to /tmp/runsc, and use laphets/gviosr-test as the container image for testing.

Add the following configs to /etc/docker/daemon.json to register runsc runtime,

"runtimes": {
    "gvisor-dpdk": {
        "path": "/tmp/runsc",
        "runtimeArgs": [
            "--network=dpdk",
            "--debug-log",
            "/tmp/gvisor/logs/runsc.log.%TEST%.%TIMESTAMP%.%COMMAND%",
            "--net-raw",
            "--debug",
            "--strace",
            "--log-packets",
            "--TESTONLY-unsafe-nonroot",
        ]
    },
    "gvisor": {
        "path": "/tmp/runsc",
        "runtimeArgs": [
            "--debug-log",
            "/tmp/gvisor/logs/runsc.log.%TEST%.%TIMESTAMP%.%COMMAND%",
            "--net-raw",
            "--debug",
            "--strace",
            "--log-packets",
            "--TESTONLY-unsafe-nonroot",
        ]
    },
}

Then restart docker daemon by systemctl restart docker.

About

Application Kernel for Containers

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 98.8%
  • Assembly 1.1%
  • C 0.1%
  • Python 0.0%
  • Shell 0.0%
  • Starlark 0.0%