2017-08-11 65 views
0

我試圖從客戶端構建docker鏡像時遇到了問題。 我正在使用「docker --host x.x.x.x build」命令。構建開始發送並失敗幾秒後出現以下錯誤:Docker發送構建上下文失敗 - 連接強制關閉

time="2017-08-11T09:43:27+01:00" level=error msg="Can't add file \\?\E:\folder\master\workspace\packages\Newtonsoft.Json.10.0.3\Newtonsoft.Json.10.0.3.nupkg to tar: io: read/write on closed pipe" time="2017-08-11T09:43:27+01:00" level=error msg="Can't close tar writer: io: read/write on closed pipe" error during connect: Post http://x.x.x.x:2375/v1.27/build?buildargs=%7B%22CONFIGURATION%22%3A%22live%22%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&nocache=1&rm=1&shmsize=0&t=project&target=&ulimits=null : read tcp y.y.y.y:52954->x.x.x.x:2375: wsarecv: An existing connection was forcibly closed by the remote host.

回答

0

該問題位於網關防火牆。這個過程試圖在tar文件中發送Newtonsoft nuget包(根據日誌),防火牆檢測到它是Ransomware,因此它正在關閉連接。 您可以允許防火牆中的特定文件使其工作。

相關問題