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

pip install docker-replay

## Usage

docker-replay -p <container name or id>

docker run --env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
--hostname test \
--interactive \
--tty \
--add-host \
--memory 128m \
--memory-swap 256m \
--memory-swappiness -1 \
--name test \
--expose 80/tcp \
--restart on-failure:0 \
--entrypoint "echo" \
alpine:latest \

## 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.5.tar.gz (5.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page