fixed based on new version of docker client

@nordsieck @mcellis33 

This should fix your hanging troubles.  Just for @mcellis33 I made a separate PR for it.