It would be good to take advantage of `docker context`. Related issue in "sync" library: docker/docker-py#2616