Convert `docker inspect` to opencontainers (OCI compatible) runc spec.

Clone this repo:
  1. bdef87d update by Jess Frazelle · 8 weeks ago master
  2. 23befa0 Merge pull request #13 from justincormack/versionup by Justin Cormack · 4 months ago
  3. 72d3186 Merge pull request #12 from justincormack/amd64 by Justin Cormack · 4 months ago
  4. 4cb0876 Update spec version to current version by Justin Cormack · 4 months ago
  5. 3be1811 The architecture for OCI is the Go architecture by Justin Cormack · 4 months ago

riddler

Travis CI

docker inspect to opencontainers/specs /opencontainers/runc generator.

$ riddler --help
      _     _     _ _
 _ __(_) __| | __| | | ___ _ __
| '__| |/ _` |/ _` | |/ _ \ '__|
| |  | | (_| | (_| | |  __/ |
|_|  |_|\__,_|\__,_|_|\___|_|
 docker inspect to opencontainers runc spec generator.
 Version: v0.1.0

 -bundle string
        Path to the root of the bundle directory
  -d    run in debug mode
  -f    force overwrite existing files
  -force
        force overwrite existing files
  -hook value
        Hooks to prefill into spec file. (ex. --hook prestart:netns) (default [])
  -host string
        Docker Daemon socket(s) to connect to (default "unix:///var/run/docker.sock")
  -v    print version and exit (shorthand)
  -version
        print version and exit

Installation

For seccomp and apparmor support you will need:

  • sys/apparmor.h
  • seccomp.h

OR to compile without those run:

$ make build BUILDTAGS=""

example

# just pass the container name or id on run

$ riddler chrome
config.json has been saved.

TODO

  • fixup various todos (mostly runtime config parsing)
  • add more unit tests for each field