参考:
https://github.com/docker/compose/issues/8366#issuecomment-1965947436
pip uninstall docker-py pip install docker==5.0.3