感谢分享, 使用时发现, 运行docker_mirror.py文件需要使用python<3.8
下面是问题;

以上是图片信息, 在运行过后
root@hcss-ecs-3320:~# docker run --detach --name kafka --network kafka-network -p 9092:9092 ubuntu/kafka:3.6-22.04_edge
Unable to find image 'ubuntu/kafka:3.6-22.04_edge' locally
3.6-22.04_edge: Pulling from ubuntu/kafka
docker: Get "https://registry-1.docker.io/v2/": dial tcp 199.16.156.40:443: i/o timeout.
See 'docker run --help'.
拉取 kafka 镜像依然超时