v0.7.0
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAlqlRw0ACgkQGPNoXAAi
v/MODBAAurBJFXJ2oiFkVq11d0/PDruGCnLbgONo5+CS6dA7nHCYeQAQIZPPs3nB
mG5LhkI5d8kagZnnC/Y2HHZ2kGfG4nGAmUEovrxnOCpr2z4Fb1HakTwNxUzv2Hq7
1vwZDPxPQ5Lq2ZDTSlEVohFuSusgjkDSGa8uXzxFRyByKiJRaPL3OJHrueo6b/A/
9otsGE9oHdIfmAl3s0xgmsOp6pqpOXxcE0f1BeZaHYFRpo73ieRhb9XMRQUqxAdL
ydNjZMxUb6X5kmi6O0jTD7aQWm8T+WpRr47q2XThzClcHJ+yq9rsQt7lswDNWxc3
IVpO/VMSvLGdiSfU2wulgHhIu9BBx6XRFUPTUnMuHKkLAjEv0pQjrR0kgd1VpXap
RoFNe40A8/WyV2723FYHS6k4RATLLjRGuwYZKW1fgGjIEUadLsxfao+X1crRV3yZ
jeRXoyKWcSdHHJ+r95kIv2Y96w+eaCv5jc61fGfrlmfxBo3LILlPiQvDZOGlFZ5M
OYVkO5Z1+0mWX5Pp2nroYL5cY8dKvSfdjABaDPrRZM+ITZ3f0wV0aemGBdzc3EH6
C+8XRIVkStdebwRXp1/nnQtM9tgh1lAbBKQ4mPgL6SouY/snTm4pDYZcGh3YEOls
ipG89eU5xldh2C646Gb0drlpbxVUnk27MSyDC/ii+HbzVDEf+z0=
=tC0+
-----END PGP SIGNATURE-----
Bump version to v0.7.0

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2 files changed
tree: d69a038a6a37775fdcc1d33353f9696f9294ab35
  1. .gitignore
  2. .travis.yml
  3. Dockerfile
  4. Gopkg.lock
  5. Gopkg.toml
  6. LICENSE
  7. Makefile
  8. README.md
  9. VERSION.txt
  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/genuinetools/riddler

Usage

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