ocitools

command module
v0.0.0-...-3c402c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 18 Imported by: 0

README

ocitools

ocitools is a collection of tools for working with the OCI runtime specification.

Generating an OCI runtime spec configuration files

ocitools generate generates configuration JSON for an OCI bundle. OCI-compatible runtimes like runC expect to read the configuration from config.json.

$ ocitools generate --output config.json
$ cat config.json
{
        "ociVersion": "0.5.0",
        …
}

Validating an OCI bundle

ocitools validate validates an OCI bundle. The error message will be printed if the OCI bundle failed the validation procedure.

$ ocitools generate
$ ocitools validate
INFO[0000] Bundle validation succeeded.

Testing OCI runtimes

$ make
$ sudo make install
$ sudo ./test_runtime.sh -r runc
-----------------------------------------------------------------------------------
VALIDATING RUNTIME: runc
-----------------------------------------------------------------------------------
validating container process
validating capabilities
validating hostname
validating rlimits
validating sysctls
Runtime runc passed validation

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址