Skip to main content

Generate docker run commands from running containers

Project description

# docker-replay
Generate `docker run` command and options from running containers

## Installing

```bash
pip install docker-replay
```

## Usage

```bash
docker-replay -p <container name or id>
```

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docker-replay-0.7.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file docker-replay-0.7.tar.gz.

File metadata

  • Download URL: docker-replay-0.7.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for docker-replay-0.7.tar.gz
Algorithm Hash digest
SHA256 ddf30d87ef975b88c8880d9a2d563b1199f034f977c1cb867574d2a5296abdf1
MD5 f891c0fcd7996cb01be26eb5918c6eb4
BLAKE2b-256 d099d06a4f194af9705ee8253939bc84bfd9135b4dcac0a39ce85e1352735d8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page