How to limit docker image's network usage or bandwidth?

无人久伴 提交于 2020-07-06 11:01:24

问题


How to limit a container's network usage or bandwidth?

I searched the Internet but it seems no existing mature solutions.

I can modify the host, but cannot modify the program running in docker or docker itself. It means I can change the configurations, but not the code of docker that I need to re-build/re-compile.


回答1:


Docker issue 9607 refers to bridge network, and issue 4763 is still opened.

So this is not yet natively supported by docker.

Kubernetes issue 2856 references a sidecar option: istio, so that would be your best approach, if you can add an orchestrator to your current docker setup.



来源:https://stackoverflow.com/questions/50031926/how-to-limit-docker-images-network-usage-or-bandwidth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!