【问题标题】:Unable to install bluemix container CLI (cf ic) under Windows 10无法在 Windows 10 下安装 bluemix 容器 CLI (cf ic)
【发布时间】:2016-04-07 12:25:16
【问题描述】:

我的环境:

  • Microsoft Windows 10 64 位
  • Docker,版本 1.10.3,构建 20f81dd,从 Docker 工具箱安装
  • CloudFoundry CLI,参见版本 6.16.1+924508c-2016-02-26
  • Bluemix CLI,bx 版本 0.3.1-5206a18-2016-03-01T08:16:52+00:00

我在 CMD 和 Boot2Docker VM 下都输入了这个命令cf install-plugin https://static-ice.ng.bluemix.net/ibm-containers-windows_x64.exe 来安装官方指南中提到的 cf ic 插件。结果是“退出状态2”。

输出:

Attempting to download binary file from internet address...  
10325504 bytes downloaded...  
Installing plugin C:\Users\myusername\AppData\Local\Temp\
ibm-containers-windows_x64.exe... 
FAILED exit status 2

什么是“退出状态 2”?我在故障排除文档中找到了提到“退出状态 1”的部分。但是,没有关于“退出状态 1”的信息。

我使用默认设置安装了所有程序,但 cf ic 插件没有正确安装。

如何解决这个问题?

【问题讨论】:

  • Boot2Docker 已被 Windows 弃用 无论如何,您是否检查过 cf cli 在您的环境中是否可用?运行 cf -v
  • cf 实用程序很好。是cf ic插件安装失败。我认为这是与 Windows 10 不兼容的问题。

标签: ibm-cloud cloud-foundry ibm-cloud-plugin


【解决方案1】:

安装包含容器功能的新 bx 插件:http://clis.ng.bluemix.net/ui/home.html

bx ic help

USAGE:
    bluemix ic COMMAND [COMMAND OPTIONS] [ARGUMENTS...]

IBM Containers commands:


attach(Docker)      Attach to a running container
build(Docker)       Build an image from a Dockerfile
create(Docker)      Create a new container
cpi                 Copy image
exec(Docker)        Run a command in a running container
groups              List all container groups
group-inspect       View the info of specified container group
group-instances     List instances of specified container group
group-create        Create a new container group
group-update        Update an existing container group
group-remove        Remove a container group
images(Docker)      List images
inspect(Docker)     Return low-level information on a container or image
info                Display information about IBM Containers
init                Initialize IBM Containers CLI
ips                 List all IP addresses
ip-request          Request an IP address
ip-release          Release an IP address
ip-bind             Bind an IP address to a container instance
ip-unbind           Unbind an IP address from a container instance
kill(Docker)        Kill a running container
namespace-get       Get current container namespace
namespace-set       Set container namespace
pause(Docker)       Pause all processes within a container
port(Docker)        List port mappings or a specific mapping for the container
ps(Docker)          List containers
restart(Docker)     Restart a running container
rm(Docker)          Remove one or more containers
rmi(Docker)         Remove one or more images
run(Docker)         Run a command in a new container
route-map           Map a route to container group
route-unmap         Unmap a route from container group
start(Docker)       Start a stopped container
stats(Docker)       Display a live stream of container(s) resource usage statistics
stop(Docker)        Stop a running container
top(Docker)         Display the running processes of a container
unpause(Docker)     Unpause a paused container
volumes             List all volumes
volume-inspect      View the info of specified volume
volume-create       Create a new volume
volume-remove       Remove a volume
volume-fs           List filesystems
volume-fs-create    Create a new filesystem
volume-fs-remove    Remove a filesystem
volume-fs-inspect   Inspect a filesystem
volume-fs-flavors   List filesystem flavors
version(Docker)     Show the Docker version information
wait(Docker)        Block until a container stops, then print its exit code
help

【讨论】:

    猜你喜欢
    • 2019-05-10
    • 2017-05-30
    • 2016-03-11
    • 2019-05-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-29
    • 1970-01-01
    相关资源
    最近更新 更多