Docker 为什么Traefik提供的内容会被截断?

Docker 为什么Traefik提供的内容会被截断?,docker,reverse-proxy,traefik,Docker,Reverse Proxy,Traefik,在我的开发环境中,在几个docker容器前面有一个Traefik反向代理 我最近注意到,当通过端口80 Traefik提供服务时,大文件被切断。但是,如果我使用Docker容器上的本地HTTP端口下载该文件,该文件就可以了 这似乎只影响超过一定大小的文件 我在一个Docker容器上生成了一个大文件,如下所示 for ((i=1;i<=200000;i++)); do echo "$i some new line that has a reasonably long length and c

在我的开发环境中,在几个docker容器前面有一个Traefik反向代理

我最近注意到,当通过端口80 Traefik提供服务时,大文件被切断。但是,如果我使用Docker容器上的本地HTTP端口下载该文件,该文件就可以了

这似乎只影响超过一定大小的文件

我在一个Docker容器上生成了一个大文件,如下所示

for ((i=1;i<=200000;i++)); do echo "$i some new line that has a reasonably long length and content" >> public/large-file.txt; done
基于这种行为,我觉得这不是Docker的问题,也不是我的web服务器的问题。相反,看起来特拉菲克是错的

这是Traefik中的错误还是潜在的配置错误?

官方形象是 这是由traefik团队制作的,但包含实验标签等

关于您的问题,正如您在此问题上看到的,它可能与1.5.0-rc中的一个问题有关,但这将在下一个1.5版本中修复

$ curl -O http://localhost/large-file.txt; cat large-file.txt
...
114633 some new line that has a reasonably long length and content
114634 some new line that has a reasonably long length and content
114635 some new line that has a rea

$ curl -O http://localhost/large-file.txt; cat large-file.txt
...
199732 some new line that has a reasonably long length and content
199733 some new line that has a reasonably long length and content
199734 some new line that has a re