{"id":13416441,"url":"https://github.com/bcicen/docker-replay","last_synced_at":"2025-04-09T13:08:08.033Z","repository":{"id":39749168,"uuid":"58284269","full_name":"bcicen/docker-replay","owner":"bcicen","description":"Generate docker commands to rerun existing containers","archived":false,"fork":false,"pushed_at":"2018-10-13T13:09:28.000Z","size":40,"stargazers_count":202,"open_issues_count":0,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-02T10:12:07.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/bcicen.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-05-07T21:00:37.000Z","updated_at":"2025-03-14T16:21:25.000Z","dependencies_parsed_at":"2022-09-05T11:10:51.094Z","dependency_job_id":null,"html_url":"https://github.com/bcicen/docker-replay","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcicen%2Fdocker-replay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcicen%2Fdocker-replay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcicen%2Fdocker-replay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcicen%2Fdocker-replay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcicen","download_url":"https://codeload.github.com/bcicen/docker-replay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045233,"owners_count":21038553,"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":[],"created_at":"2024-07-30T21:00:58.907Z","updated_at":"2025-04-09T13:08:08.012Z","avatar_url":"https://github.com/bcicen.png","language":"Python","funding_links":[],"categories":["Docker Images","Python"],"sub_categories":["Builder"],"readme":"# docker-replay\n\n[![PyPI version](https://badge.fury.io/py/docker-replay.svg)](https://badge.fury.io/py/docker-replay)\n\nGenerate `docker run` command and options from running containers\n\n## Quickstart\n\n`docker-replay` can be most easily run using the official image build:\n```bash\ndocker run --rm -ti \\\n  -v /var/run/docker.sock:/var/run/docker.sock \\\n  bcicen/docker-replay \\\n  -p \u003ccontainer name or id\u003e\n```\n\n## Installing\n\n```bash\npip install docker-replay\n```\n\n## Usage\n\n```bash\ndocker-replay -p \u003ccontainer name or id\u003e\n```\n\noutput:\n```bash\ndocker run --env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \\\n           --hostname test \\\n           --interactive \\\n           --tty \\\n           --add-host google.com:127.0.0.1 \\\n           --memory 128m \\\n           --memory-swap 256m \\\n           --memory-swappiness -1 \\\n           --name test \\\n           --expose 80/tcp \\\n           --restart on-failure:0 \\\n           --entrypoint \"echo\" \\\n           alpine:latest \\\n           hello\n```\n\n## Options\n\nOption | Description\n--- | ---\n--debug, -d | enable debug output\n--pretty-print, -p | pretty-print output\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcicen%2Fdocker-replay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcicen%2Fdocker-replay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcicen%2Fdocker-replay/lists"}