The requests version>2.30 breaks older versions of docker-py and it was addressed here. https://github.com/docker/docker-py/pull/3257