在 windows 7 Docker 快速启动终端中发出 运行 curl 命令
Issue to run curl command in windows 7 Docker Quickstart Terminal
我正在按照提到的步骤尝试设置示例 hyperledger fabric1.0 网络的步骤 here on windows 7. As part of this I am following these steps for Hyperledger Fabric Samples。
由于我的 OS 是 Windows7 64 位,所以我使用 Docker Toolbox
但我的问题是,运行 Docker 快速启动终端中的以下命令
curl -sSL https://goo.gl/iX9dek ¦ bash
我遇到错误
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: <HTML>
我在步骤中也发现了一个注释
If you get an error running the above curl command, you may have too old a version of curl. Please visit the Prerequisites page for additional information on where to find the latest version.
我在 windows 环境中设置了最新版本的 curl,但在 Docker Quickstart Terminal 它正在使用一些旧版本。
我尝试使用 yum update curl.x86_64
在虚拟机终端中更新它,但是找不到 yum、update 等。
在这种情况下如何更新卷曲?如果 curl 版本不是问题,那么我哪里做错了?
求推荐..
提前致谢。
终于找到问题了。:)
问题出在url https://goo.gl/iX9dek,这里的文档移到了
here which is not updated in the stepout 我正在关注。
正在使用以下命令
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap-1.0.0.sh | bash
实际上,问题更有可能是您机器上的 curl 版本不支持重定向。在 instructions for the curl command is a note that suggests that if you have errors, update your version of curl.
下面的注释中
请注意,用原始 GH URL 替换 URL 也是正确的
解决方案,但您可能无论如何都想更新 curl。
我正在按照提到的步骤尝试设置示例 hyperledger fabric1.0 网络的步骤 here on windows 7. As part of this I am following these steps for Hyperledger Fabric Samples。
由于我的 OS 是 Windows7 64 位,所以我使用 Docker Toolbox
但我的问题是,运行 Docker 快速启动终端中的以下命令
curl -sSL https://goo.gl/iX9dek ¦ bash
我遇到错误
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: <HTML>
我在步骤中也发现了一个注释
If you get an error running the above curl command, you may have too old a version of curl. Please visit the Prerequisites page for additional information on where to find the latest version.
我在 windows 环境中设置了最新版本的 curl,但在 Docker Quickstart Terminal 它正在使用一些旧版本。
我尝试使用 yum update curl.x86_64
在虚拟机终端中更新它,但是找不到 yum、update 等。
在这种情况下如何更新卷曲?如果 curl 版本不是问题,那么我哪里做错了?
求推荐..
提前致谢。
终于找到问题了。:)
问题出在url https://goo.gl/iX9dek,这里的文档移到了 here which is not updated in the stepout 我正在关注。
正在使用以下命令
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap-1.0.0.sh | bash
实际上,问题更有可能是您机器上的 curl 版本不支持重定向。在 instructions for the curl command is a note that suggests that if you have errors, update your version of curl.
下面的注释中请注意,用原始 GH URL 替换 URL 也是正确的 解决方案,但您可能无论如何都想更新 curl。