While very convenient, docker-py is currently unmaintaned (see docker/docker-py#2989), so we might want to consider migrating away from it.
A solution which does not require introducing new dependencies would replacing the docker_client fixture with a wrapper calling docker through subprocess.run.