我正在尝试创建容器,我可以在bluemix上创建docker(按需) 我尝试按照此页面上的说明进行操作 https://www.ng.bluemix.net/docs/containers/container_cli_ice_ov.html#container_cli_ice_dockerfile
执行此命令后: “docker build -t image_name:tag dockerfile_location”
我在第5步收到错误:
Step 5 : RUN wget "ttps://cli.run.pivotal.io/stable?release=linux64-binary&version=6.12&source=github-rel" --output-document=cf.tgz && tar -xvf cf.tgz && mv cf /usr/bin/cf
---> Running in 42dbf6ca5f4d
--2015-11-09 13:14:17-- ttps://cli.run.pivotal.io/stable?release=linux64-binary&version=6.12&source=github-rel
Resolving cli.run.pivotal.io (cli.run.pivotal.io)... 52.2.163.125, 52.21.135.158
Connecting to cli.run.pivotal.io (cli.run.pivotal.io)|52.2.163.125|:443... connected.
HTTP request sent, awaiting response... 412 Precondition Failed
2015-11-09 13:14:18 ERROR 412: Precondition Failed.
非常感谢任何帮助
答案 0 :(得分:1)
似乎版本6.12不再是正确的参数来下载稳定的cf cli。您可以使用:
尝试最新的6.12版本(6.12.4)wget "https://cli.run.pivotal.io/stable?release=linux64-binary&version=6.12.4&source=github-rel"
正在下拉的稳定版本列表为here