bcicen / docker-replay Goto Github PK
View Code? Open in Web Editor NEWGenerate docker commands to rerun existing containers
License: MIT License
Generate docker commands to rerun existing containers
License: MIT License
When run against a container that was started in --uts host
mode, docker-replay
will generate a command line that contains both the --hostname
and --uts host
arguments. These options to the Docker CLI are incompatible and attempting to specify a hostname when running with --uts host
will result in a fatal error.
On my docker instance, most of my containers have this in their inspect:
"LogConfig": {
"Type": "db",
"Config": null
}
When running these containers on docker-replay, I get an AttributeError:
Traceback (most recent call last):
File "/opt/bin/docker-replay", line 11, in <module>
sys.exit(main())
File "/opt/lib/python2.7/site-packages/docker_replay/__init__.py", line 49, in main
print(DockerReplay(args.container, args.pretty_print))
File "/opt/lib/python2.7/site-packages/docker_replay/__init__.py", line 21, in __init__
self.parser = OptionParser(inspect)
File "/opt/lib/python2.7/site-packages/docker_replay/opts.py", line 14, in __init__
self.read_opts()
File "/opt/lib/python2.7/site-packages/docker_replay/opts.py", line 23, in read_opts
self.opts += list(build_opt(o_type, o_name, self.get(o_key)))
File "/opt/lib/python2.7/site-packages/docker_replay/models.py", line 9, in build_opt
for k,v in o_val.items():
AttributeError: 'NoneType' object has no attribute 'items'
Under Ubuntu 17.10 I tried to install docker-replay
using pip install docker-replay
which leads to the following output:
pip install docker-replay
Collecting docker-replay
Using cached docker_replay-1.2-py2.py3-none-any.whl
Collecting docker>=2.4.2 (from docker-replay)
Using cached docker-2.7.0-py2.py3-none-any.whl
Collecting docker-pycreds>=0.2.1 (from docker>=2.4.2->docker-replay)
Using cached docker_pycreds-0.2.1-py2.py3-none-any.whl
Collecting backports.ssl-match-hostname>=3.5; python_version < "3.5" (from docker>=2.4.2->docker-replay)
Collecting ipaddress>=1.0.16; python_version < "3.3" (from docker>=2.4.2->docker-replay)
Collecting requests!=2.18.0,>=2.14.2 (from docker>=2.4.2->docker-replay)
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting six>=1.4.0 (from docker>=2.4.2->docker-replay)
Using cached six-1.11.0-py2.py3-none-any.whl
Collecting websocket-client>=0.32.0 (from docker>=2.4.2->docker-replay)
Using cached websocket_client-0.46.0-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests!=2.18.0,>=2.14.2->docker>=2.4.2->docker-replay)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests!=2.18.0,>=2.14.2->docker>=2.4.2->docker-replay)
Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests!=2.18.0,>=2.14.2->docker>=2.4.2->docker-replay)
Using cached certifi-2017.11.5-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests!=2.18.0,>=2.14.2->docker>=2.4.2->docker-replay)
Using cached chardet-3.0.4-py2.py3-none-any.whl
Installing collected packages: six, docker-pycreds, backports.ssl-match-hostname, ipaddress, idna, urllib3, certifi, chardet, requests, websocket-client, docker, docker-replay
Successfully installed backports.ssl-match-hostname-3.5.0.1 certifi-2017.11.5 chardet-3.0.4 docker-2.7.0 docker-pycreds-0.2.1 docker-replay-1.2 idna-2.6 ipaddress-1.0.19 requests-2.18.4 six-1.11.0 urllib3-1.22 websocket-client-0.46.0
When running docker-replay -p <containerid>
I get docker-replay: command not found
If would be great to be able to run the application using Docker itself.
Hello, you are doing a great job, thank you for this tool!
But the docker run options --net and --ip are missing ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.