Tensorflow服务Docker映像安装错误curl:(56)GnuTLS recv错误(-54):pull函数中的错误

时间:2018-07-05 12:12:28

标签: docker tensorflow tensorflow-serving

我正在尝试使用以下命令创建docker映像

docker build --pull -t $USER/tensorflow-serving-devel -f tensorflow_serving/tools/docker/Dockerfile.devel .

但是当它运行以下命令时,

Step 13/19 : RUN mkdir /bazel &&     cd /bazel &&     curl -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36" -fSsL -O https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh &&     curl -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36" -fSsL -o /bazel/LICENSE.txt https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE &&     chmod +x bazel-*.sh &&     ./bazel-$BAZEL_VERSION-installer-linux-x86_64.sh &&     cd / &&     rm -f /bazel/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh

它显示异常

卷曲:(56)GnuTLS接收错误(-54):拉取功能出错。

它显示以下异常

1 个答案:

答案 0 :(得分:1)

通常是网络问题。我记得遇到这样的错误。还请参考给定的链接,指出这是网络问题:

  1. https://github.com/curl/curl/issues/1707
  2. git error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function

希望这会有所帮助!