# lavie/runlike

Given an existing docker container, prints the command line necessary to run a copy of it.

Repository: https://github.com/lavie/runlike
Canonical: https://ross.abutalabs.com/products/runlike
Language: Python
License: NOASSERTION
License Family: other
Topics: docker, docker-container, python
Last push: 2026-04-27T14:03:20+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 79, release rhythm 40, longevity 100
- inputs: {"age_days": 4108, "days_push": 128, "days_rel": 554, "gap_med": 9.0, "n_releases_24m": 7}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2940, forks 167 (observed 2026-08-28T04:07:31.003627+00:00)

## What it is
runlike is a Python CLI tool that inspects an existing Docker container and prints the `docker run` command line needed to recreate a copy of it, including ports, volumes, links, and environment variables. It can also accept `docker inspect` output via stdin and is available as a pip package or a Docker image.

## Use cases
- reconstruct the docker run command for an existing container
- migrate a container to another host without the original launch command
- document how a container deployed by Ansible or Chef was started
- quickly clone a running container with the same options
- convert docker inspect output into a readable docker run command

## When to choose
- you lost or never had the original docker run command for a container
- you need to manually re-run a container that was deployed by a configuration management tool
- you want a quick, human-readable summary of a container's run options

## When to avoid
- you need guaranteed production-grade accuracy - the README warns against production use
- your container uses docker run options not yet supported by the tool
- you manage containers with Compose, Kubernetes, or other declarative tooling that already captures the configuration

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, cli, container-runtime, configuration-management
- domain: developer-tools
- platform: python, cli
- tags: docker-inspect, docker-run, reverse-engineering, container-migration, containers, devops, command-line, linux, macos, docker

## Member repositories
- lavie/runlike (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.003627+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:47:37.927894+00:00, confidence not recorded.
  - readme: https://github.com/lavie/runlike (fetched 2026-08-28T04:07:31.003627+00:00, sha ed62e17c6bca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
