updates to change execute() to exec_create/exec_start
docker-py no longer supports c.execute() - it has been broken out into c.exec_create() and c.exec_start(). This commit mostly covers that, and in the process solved a couple of other issues I encountered in my env. I've made the whole thing more generic and thus more flexible. It also works under Python2, so you can close out that issue from Feb.
- works under python2
- network function uses
/proc/net/devfor statistics, which should always work - works on images that don't have
ifconfiginstalled
Fixes #1
Latest commits add support for docker-py version option when creating client. Resolves issues with client/server API version conflicts by defaulting to 'auto' in config.
Any reason why you're ignoring my PRs?
Sorry @oskapt just been busy and then forget to get back to it. Let me have a look
Just a question: you change the shebang to use python instead of python3 which means it could be python2 in this cas, the print( will work but adding a from __future__ import print_function would be probably better.
I don't run python3 anywhere, so that was a quick hack back in October just to get things to work. I'm not up to speed on how best to get the two to play nice with each other. Does it really matter if it might run under python2? Specifying python3 in the shebang breaks it for environments where 3 isn't installed. I thought env python was friendlier.