All Projects → genuinetools → Riddler

genuinetools / Riddler

Licence: mit
A tool to convert docker inspect to the opencontainers runc spec.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Riddler

Toggl Cli
A simple command-line interface for toggl.com
Stars: ✭ 241 (-3.6%)
Mutual labels:  cli
Websocat
Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
Stars: ✭ 3,477 (+1290.8%)
Mutual labels:  cli
Telegram.sh
Send telegram messages right from your command line.
Stars: ✭ 247 (-1.2%)
Mutual labels:  cli
Fui
Add CLI & form interface to your program. Docs: https://docs.rs/fui
Stars: ✭ 244 (-2.4%)
Mutual labels:  cli
Npx
execute npm package binaries (moved)
Stars: ✭ 2,634 (+953.6%)
Mutual labels:  cli
Runtime Tools
OCI Runtime Tools
Stars: ✭ 246 (-1.6%)
Mutual labels:  oci
Kb
A minimalist command line knowledge base manager
Stars: ✭ 2,789 (+1015.6%)
Mutual labels:  cli
Cupertino
CLI for the Apple Dev Center
Stars: ✭ 2,664 (+965.6%)
Mutual labels:  cli
Hiper
🚀 A statistical analysis tool for performance testing
Stars: ✭ 2,667 (+966.8%)
Mutual labels:  cli
Favicon Emoji
🖼 Generate an emoji-favicon in your terminal
Stars: ✭ 247 (-1.2%)
Mutual labels:  cli
3llo
3llo - Trello interactive CLI aplication
Stars: ✭ 245 (-2%)
Mutual labels:  cli
Covid19 Tracker Cli
A curl-based command line tracker for Novel Coronavirus or COVID-19 pandemic. It Supports terminal for linux and macos, command prompt for windows, and termux for android with real-time updates.
Stars: ✭ 244 (-2.4%)
Mutual labels:  cli
Oauth
A library for performing OAuth Device flow and Web application flow in Go client apps.
Stars: ✭ 244 (-2.4%)
Mutual labels:  cli
Lyra
A simple to use, composable, command line parser for C++ 11 and beyond
Stars: ✭ 238 (-4.8%)
Mutual labels:  cli
Npm Upgrade
Interactive CLI utility to easily update outdated NPM dependencies
Stars: ✭ 245 (-2%)
Mutual labels:  cli
Home Assistant Cli
💻 Command-line tool for Home Assistant
Stars: ✭ 243 (-2.8%)
Mutual labels:  cli
Jenkins Cli
Jenkins CLI allows you manage your Jenkins as an easy way
Stars: ✭ 245 (-2%)
Mutual labels:  cli
Zapier Platform Cli
💻 Build Zapier integrations and test locally using the JavaScript tools you already know.
Stars: ✭ 249 (-0.4%)
Mutual labels:  cli
Gif For Cli
opensource.googleblog.com/2018/06/tenor-gif-for-cli.html
Stars: ✭ 2,772 (+1008.8%)
Mutual labels:  cli
Runj
runj is an experimental, proof-of-concept OCI-compatible runtime for FreeBSD jails.
Stars: ✭ 211 (-15.6%)
Mutual labels:  oci

riddler

make-all make-image GoDoc Github All Releases

A tool to convert docker inspect to the opencontainers/specs and opencontainers/runc.

Table of Contents

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

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/genuinetools/riddler

Usage

$ riddler -h
riddler -  A tool to convert docker inspect to the opencontainers runc spec.

Usage: riddler <command>

Flags:

  --host       Docker Daemon socket(s) to connect to (default: unix:///var/run/docker.sock)
  --idlen      Length of UID/GID ID space ranges for user namespaces (default: 0)
  --idroot     Root UID/GID for user namespaces (default: 0)
  --bundle     Path to the root of the bundle directory (default: <none>)
  -d           enable debug logging (default: false)
  -f, --force  force overwrite existing files (default: false)
  --hook       Hooks to prefill into spec file. (ex. --hook prestart:netns) (default: [])

Commands:

  version  Show the version information.

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].