I don't think TypeError is right, I'd rather see us create/use a subclass of [DockerException](https://github.com/dotcloud/docker-py/blob/master/docker/errors.py#L52).