v0.2.0
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAlpLTw8ACgkQGPNoXAAi
v/PcgBAA1efnb0WH+zS+o/d6JhzVD/1zzmpA1LuJSRznqANpOLkY6bX/kBI5KJ+j
iMV3kw1bHD9Gz4k/oD1R1cpCtv3qWaeruo1tRURMo8vJLoTyoNv4jIpcWsoMyhFY
tTOp4rvpx5e6kP4HJH/JfCFA7WmjcOlFBAS9gzxA3wfeLuhLO1SRHwoJMUWqJnJU
rpxUOP5HE27oPpw7MVNaWhKJreppi++Ug3KvxtSbHEjPx0itJeFqlNkkK69zemOy
NUm8yftfy3em2+PMffAtNoS1OJgUcvaVtbwR3Cf0KrWv9PTh9o46knHEkEO/WwBe
GsxEm0DDvceXMFhQxyLQ1+Rewo0QuiXuQdDgULuLNtBpAY2QJea5J91QOj3D7XNY
xMt9/S5spkv+lgHDG5Y7kZHJwveMwXnl2PDHg9qJzI65fZcPqL/EzC+S+0fQOI0K
YOdX0/+p9b3hfhMLbE3qtMSMlzp4KprymfDTk5yNZO12EFB/AQHB4LC97QQO/AnA
OW4NadD1rXLiKkK45RLSORYexiwCwdu+qBCJGC6XMYrS6fakDv76ZiGco+oV6fTv
X5x25anjNmGCaTlx94lhgua8H9rCNejlC5Jhgg2ZtcshG5gGzBbszlV9IN4Mu5mt
0mucvaGhpxy4StMeghgjjxcC35UH3/SUvaG38ZuqJ5wZVIlO/PY=
=nOTh
-----END PGP SIGNATURE-----
Bump version to v0.2.0

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2 files changed
tree: 78eaa69107d56b20028e57e90ba1fba85dfbf6c3
  1. .gitignore
  2. .travis.yml
  3. Dockerfile
  4. LICENSE
  5. Makefile
  6. README.md
  7. VERSION
  8. main.go
  9. parse/
  10. vendor/
  11. 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.2.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