v0.6.0
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAlpLoQYACgkQGPNoXAAi
v/OdWQ/+McEdo6s5FYKpp63M27q91NyZUERM2Z9Qx+NINMTcqqb9S75PqwdRpWMG
JeTxYV8fLkCzVyZ2iT9eFH3TWN+7DH+PKyiKrBko6VoV/th66E5bvW3995Qun9ai
AR7sLSpCiyXtVFdgTirm7q8oY50kJkInDTn5Ckk/zlIxA4XTLNnknrYoWy2gkRuv
vleNpG/MmAcnxAC926+SPGnOhnKjf3I6qqfb4bsZq3bRz1AU8zsWHNtabjy9KHmL
0vQTOyZeqoJPgmmNZAPhCoXo6Th1NuMKHWEQY4r4hjUJk8jdf5B17myo/1B6OmLX
SPzIgvxpy3xuY6w5LTJX4voP+8C7Ktw/Pnck46+JnG4AvSoGNtLIdrejqtLHAUwl
LCGxgTorhlobd1oxTpwA0g7aOpWeXVYc6+n5mqDUDmQWfvR4VqoWi2+/xtzZjklh
VIMrjC9R9gaJdn14OF9gjD4I+mq7qTi8yzJ24qOPppoznWR4HL6HRw5NygllxIFL
bDfsanuwiFXqR0Hdp0HBoJTiV4d5EBOKIGEbsf4nFCjcrXJaJKyliFFPWLtydTSA
9vJCJhzzX4AZjkgNKXcrdsByvRPWYjzs1jSvG1LcBFg2B0kV0uq+ljoHX7Hrs7GG
PBA0uSxP6ZM1fdGWT5lkEGnUAXQDsuPgo8roFuSc59v4oBLWA/U=
=6/1l
-----END PGP SIGNATURE-----
Bump version to v0.6.0

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2 files changed
tree: 7eb3249e16d24c8dbc2bc9563ee6897b3a79c9a1
  1. .gitignore
  2. .travis.yml
  3. Dockerfile
  4. Gopkg.lock
  5. Gopkg.toml
  6. LICENSE
  7. Makefile
  8. README.md
  9. VERSION
  10. main.go
  11. parse/
  12. vendor/
  13. version/
README.md

riddler

Travis CI

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

NOTE

This project is no longer maintained. If you are using a version of docker greater than 1.11 then you can just copy the config from /var/run/docker/libcontainerd like so:

$ docker ps -a
CONTAINER ID    CREATED             STATUS              PORTS               NAMES
d4da95779a3c    3 minutes ago       Up 3 minutes        80/tcp              modest_meitner

$ sudo tree /var/run/docker/libcontainerd -L 1
/var/run/docker/libcontainerd
├── containerd
├── d4da95779a3c287b28b421194f04374b6330e6ff10f5ca1a99d03828d84f1635
├── docker-containerd.pid
├── docker-containerd.sock
└── event.ts

$ sudo tree /var/run/docker/libcontainerd/d4da95779a3c.../
/var/run/docker/libcontainerd/d4da95779a3c.../
├── config.json
├── init-stderr
├── init-stdin
└── init-stdout

$ sudo file /var/run/docker/libcontainerd/d4da95779a3c.../config.json
/var/run/docker/libcontainerd/d4da95779a3c.../config.json: ASCII text, with very long lines

Installation

Binaries

Via Go

$ go get github.com/jessfraz/riddler

Usage

$ riddler --help
      _     _     _ _
 _ __(_) __| | __| | | ___ _ __
| '__| |/ _` |/ _` | |/ _ \ '__|
| |  | | (_| | (_| | |  __/ |
|_|  |_|\__,_|\__,_|_|\___|_|
 docker inspect to opencontainers runc spec generator.
 Version: v0.6.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