{"id":13723963,"url":"https://github.com/genuinetools/riddler","last_synced_at":"2025-10-23T18:48:38.563Z","repository":{"id":57584247,"uuid":"49557116","full_name":"genuinetools/riddler","owner":"genuinetools","description":"A tool to convert docker inspect to the opencontainers runc spec.","archived":false,"fork":false,"pushed_at":"2020-09-17T20:08:53.000Z","size":10853,"stargazers_count":255,"open_issues_count":4,"forks_count":21,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-07T21:44:04.259Z","etag":null,"topics":["cli","docker","linux","oci","opencontainers","runc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/genuinetools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-13T07:23:15.000Z","updated_at":"2025-02-20T13:28:44.000Z","dependencies_parsed_at":"2022-09-10T12:41:19.424Z","dependency_job_id":null,"html_url":"https://github.com/genuinetools/riddler","commit_stats":null,"previous_names":["jfrazelle/riddler","jessfraz/riddler"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/genuinetools/riddler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genuinetools%2Friddler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genuinetools%2Friddler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genuinetools%2Friddler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genuinetools%2Friddler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/genuinetools","download_url":"https://codeload.github.com/genuinetools/riddler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genuinetools%2Friddler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261249797,"owners_count":23130495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","docker","linux","oci","opencontainers","runc"],"created_at":"2024-08-03T01:01:47.729Z","updated_at":"2025-10-23T18:48:38.474Z","avatar_url":"https://github.com/genuinetools.png","language":"Go","readme":"# riddler\n\n[![make-all](https://github.com/genuinetools/riddler/workflows/make%20all/badge.svg)](https://github.com/genuinetools/riddler/actions?query=workflow%3A%22make+all%22)\n[![make-image](https://github.com/genuinetools/riddler/workflows/make%20image/badge.svg)](https://github.com/genuinetools/riddler/actions?query=workflow%3A%22make+image%22)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://godoc.org/github.com/genuinetools/riddler)\n[![Github All Releases](https://img.shields.io/github/downloads/genuinetools/riddler/total.svg?style=for-the-badge)](https://github.com/genuinetools/riddler/releases)\n\n\nA tool to convert `docker inspect` to the\n[opencontainers/specs](https://github.com/opencontainers/specs)\nand [opencontainers/runc](https://github.com/opencontainers/runc).\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**\n\n- [NOTE](#note)\n- [Installation](#installation)\n    - [Binaries](#binaries)\n    - [Via Go](#via-go)\n- [Usage](#usage)\n- [Installation](#installation-1)\n  - [TODO](#todo)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## NOTE\n\nThis project is no longer maintained. If you are using a version of\ndocker greater than 1.11 then you can just copy the config from\n`/var/run/docker/libcontainerd` like so:\n\n```console\n$ docker ps -a\nCONTAINER ID    CREATED             STATUS              PORTS               NAMES\nd4da95779a3c    3 minutes ago       Up 3 minutes        80/tcp              modest_meitner\n\n$ sudo tree /var/run/docker/libcontainerd -L 1\n/var/run/docker/libcontainerd\n├── containerd\n├── d4da95779a3c287b28b421194f04374b6330e6ff10f5ca1a99d03828d84f1635\n├── docker-containerd.pid\n├── docker-containerd.sock\n└── event.ts\n\n$ sudo tree /var/run/docker/libcontainerd/d4da95779a3c.../\n/var/run/docker/libcontainerd/d4da95779a3c.../\n├── config.json\n├── init-stderr\n├── init-stdin\n└── init-stdout\n\n$ sudo file /var/run/docker/libcontainerd/d4da95779a3c.../config.json\n/var/run/docker/libcontainerd/d4da95779a3c.../config.json: ASCII text, with very long lines\n```\n\n## Installation\n\n#### Binaries\n\nFor installation instructions from binaries please visit the [Releases Page](https://github.com/genuinetools/riddler/releases).\n\n#### Via Go\n\n```console\n$ go get github.com/genuinetools/riddler\n```\n\n## Usage\n\n```console\n$ riddler -h\nriddler -  A tool to convert docker inspect to the opencontainers runc spec.\n\nUsage: riddler \u003ccommand\u003e\n\nFlags:\n\n  --host       Docker Daemon socket(s) to connect to (default: unix:///var/run/docker.sock)\n  --idlen      Length of UID/GID ID space ranges for user namespaces (default: 0)\n  --idroot     Root UID/GID for user namespaces (default: 0)\n  --bundle     Path to the root of the bundle directory (default: \u003cnone\u003e)\n  -d           enable debug logging (default: false)\n  -f, --force  force overwrite existing files (default: false)\n  --hook       Hooks to prefill into spec file. (ex. --hook prestart:netns) (default: [])\n\nCommands:\n\n  version  Show the version information.\n```\n\n## Installation\n\nFor seccomp and apparmor support you will need:\n\n- `sys/apparmor.h`\n- `seccomp.h`\n\n**OR** to compile without those run:\n\n```console\n$ make build BUILDTAGS=\"\"\n```\n\n\n**example**\n\n```console\n# just pass the container name or id on run\n\n$ riddler chrome\nconfig.json has been saved.\n```\n\n### TODO\n\n- fixup various todos (mostly runtime config parsing)\n- add more unit tests for each field\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenuinetools%2Friddler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenuinetools%2Friddler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenuinetools%2Friddler/lists"}