Docker容器中的速度慢 [英] Slowness in Docker container
本文介绍了Docker容器中的速度慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Mac上使用docker,并且docker容器中的curl命令比我的mac上花费的时间更长.容器正在使用默认的桥接网络.
I'm using docker for mac and curl command from docker container takes way longer than from my mac. Container is using default bridge network.
请从容器内部查看以下curl命令:
See below curl command from inside the container:
来自Mac的命令:
谢谢.
推荐答案
众所周知,Docker中使用网桥/NAT模式的网络连接速度很慢.您可以使用托管模式.这应该通过 macvlan驱动程序解决.
It is a known issue that networking with bridge / nat mode in docker is slow. You could use hosted mode. This should be solved by the macvlan driver.
有关更多参考,请查看此错误.
For further reference, please look at this bug.
这篇关于Docker容器中的速度慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文