Compatilibility fixes for docker-py 0.2.3 (with port bindings)

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>