dr

docker-replay

Generate docker commands to rerun existing containers

Showing:

Popularity

Downloads/wk

0

GitHub Stars

172

Maintenance

Last Commit

3yrs ago

Contributors

4

Package

Dependencies

1

License

http://opensource.org/licenses/MIT

Categories

Readme

docker-replay

PyPI version

Generate docker run command and options from running containers

Quickstart

docker-replay can be most easily run using the official image build:

docker run --rm -ti \
  -v /var/run/docker.sock:/var/run/docker.sock \
  bcicen/docker-replay \
  -p <container name or id>

Installing

pip install docker-replay

Usage

docker-replay -p <container name or id>

output:

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

OptionDescription
--debug, -denable debug output
--pretty-print, -ppretty-print output

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100