v0.1.0
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAlpKpSkACgkQGPNoXAAi
v/M1aBAAurpJ4PncdVaB/nvwUiWxLvXegPlSUv39fXkGmBpIO7o7hyb8XdfmjtOd
laWOMsg2ImPgV1aOzkVkF0zqBVRFTPi1h8EopB1VZMA3qtbrt72f/j2j1bH0zDRL
qZ9TkcUQuzNALJdzU0GLSql51NTUDWk3T+jsssgyxHFIDheWIlk94hbsI1xlpwFp
RWcVjWW3VShNbHAZ/ns9mYdvh/PCZ5I1deMLD9lM0mpOXe8Uyo6944HAZ5bWzZBA
UNEtA/kZg40DNOoS+d8jwPsTKRbMMYyNLKRDL2OKAc8DdipZCUR5MX5fjrT1oYac
gX62nfkmdzEZPaKXjVkUqtCvjivAUc6la4xOpwcXp1AhVObWu0X6hLkFPtvd/FKy
McW/LMZd0s+LebPbYJhqDabTMvex4Ci8a3wp7ZPRBICRWDnkUqMZFRAz5ZG0Ji/G
once7mbwJav6hOZy7lEdN5NM8vFaSIbCcDB31S6DidQte4yajLbiEEsR3ZgA1Yjn
OC2LMeIz9Sc/DK5EjT52feNnp843PyJKcuF3yX0qNiWHUtmqDd8fbK2OSSQulLMd
k7TRJkhd41YjnFmKVDbSyYzSu40lBo/PYzqewKWZhWsXjngSaCoxZ2tKKZT9Fpa5
QHr28/FkCWRYKOsI5HWD346zASMJiQXBV8iRStdoINE02JR8UPw=
=QI6O
-----END PGP SIGNATURE-----
Bump version to v0.1.0

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
1 file changed
tree: e94fab806de645d1bed3e092c3d042b370e2171c
  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

Usage

$ 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