Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bcicen/docker-replay
Generate docker commands to rerun existing containers
https://github.com/bcicen/docker-replay
Last synced: 3 days ago
JSON representation
Generate docker commands to rerun existing containers
- Host: GitHub
- URL: https://github.com/bcicen/docker-replay
- Owner: bcicen
- License: mit
- Created: 2016-05-07T21:00:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-13T13:09:28.000Z (about 6 years ago)
- Last Synced: 2024-10-26T21:33:13.144Z (16 days ago)
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 199
- Watchers: 10
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-docker - docker-replay - Generate `docker run`command and options from running containers. By [bcicen](https://github.com/bcicen) (Docker Images / Builder)
- awesome-docker - docker-replay - Generate `docker run`command and options from running containers. By [bcicen](https://github.com/bcicen) (Docker Images / Builder)
- jimsghstars - bcicen/docker-replay - Generate docker commands to rerun existing containers (Python)
README
# docker-replay
[![PyPI version](https://badge.fury.io/py/docker-replay.svg)](https://badge.fury.io/py/docker-replay)
Generate `docker run` command and options from running containers
## Quickstart
`docker-replay` can be most easily run using the official image build:
```bash
docker run --rm -ti \
-v /var/run/docker.sock:/var/run/docker.sock \
bcicen/docker-replay \
-p
```## Installing
```bash
pip install docker-replay
```## Usage
```bash
docker-replay -p
```output:
```bash
docker run --env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
--hostname test \
--interactive \
--tty \
--add-host google.com:127.0.0.1 \
--memory 128m \
--memory-swap 256m \
--memory-swappiness -1 \
--name test \
--expose 80/tcp \
--restart on-failure:0 \
--entrypoint "echo" \
alpine:latest \
hello
```## Options
Option | Description
--- | ---
--debug, -d | enable debug output
--pretty-print, -p | pretty-print output