Bluemix:无法访问本地Docker守护程序对其进行身份验证

Bluemix:无法访问本地Docker守护程序对其进行身份验证,docker,containers,ibm-cloud,cloud-foundry,Docker,Containers,Ibm Cloud,Cloud Foundry,我有几乎相同的问题,如本文所述。不幸的是,这个线程中提供的答案并不能解决我的问题 cf登录工作正常 cf ic登录失败: $ sudo cf ic login Password: Client certificates are being retrieved from IBM Containers... Client certificates are being stored in /Users/XX/.ice/certs/... Client certificates are being st

我有几乎相同的问题,如本文所述。不幸的是,这个线程中提供的答案并不能解决我的问题

cf登录工作正常

cf ic登录失败:

$ sudo cf ic login
Password:
Client certificates are being retrieved from IBM Containers...
Client certificates are being stored in /Users/XX/.ice/certs/...
Client certificates are being stored in /Users/XX/.ice/certs/containers-api.eu-gb.bluemix.net/bd67571...
OK
Client certificates were retrieved.

Deleting old configuration file...
Checking local Docker configuration...

Your system was authenticated with the IBM Containers API,
however the local Docker daemon is not reachable to authenticate it
with the IBM Containers registry. You can still run IBM Containers
on the cloud but will not be able to push or pull images.

You can choose from two ways to use the Docker CLI with IBM Containers:


Option 1: This option allows you to use "cf ic" for managing containers on 
IBM Containers while still using the Docker CLI directly to manage your 
local Docker host.
Use this Cloud Foundry IBM Containers plug-in without affecting the local Docker environment:

Example Usage:
cf ic ps
cf ic images



Option 2: Use the Docker CLI directly. In this shell, override the local Docker environment to connect to IBM Containers by setting these variables. Copy and paste the following commands:
Note: Only Docker commands followed by (Docker) are supported with this option. 

export DOCKER_HOST=tcp://containers-api.eu-gb.bluemix.net:8443
export DOCKER_CERT_PATH=/Users/XX/.ice/certs/containers-api.eu-gb.bluemix.net/bd675...
export DOCKER_TLS_VERIFY=1
我在前面提到的线程中尝试了这个建议,并运行了eval“$(docker machine env default)”。 结果,“docker images”和“docker ps”命令执行正常

那么,如果我跑

cf login 
cf ic login 

我在执行cf ic登录时遇到上述错误。我还尝试了错误消息所建议的选项2,但这也没有帮助

当我在Mac中使用sudo运行
cf login
cf ic login
时,我能够重新创建您看到的错误。如果我在没有
sudo
的情况下运行,那么
cf ic login
工作正常

在不使用sudo的情况下运行所有命令:

$ cf login 

$ cf ic login 
Client certificates are being retrieved from IBM Containers...
Client certificates are being stored in /Users/adasilva/.ice/certs/...
Client certificates are being stored in /Users/adasilva/.ice/certs/containers-api.ng.bluemix.net/ef4c3396-1d7a-4843-8d05-fd255b6899d2...
OK
Client certificates were retrieved.

Deleting old configuration file...
Checking local Docker configuration...
OK

Authenticating with registry at host name registry.ng.bluemix.net
OK
Your container was authenticated with the IBM Containers registry.
Your private Bluemix repository is URL: registry.ng.bluemix.net/adasilva

You can choose from two ways to use the Docker CLI with IBM Containers:

Option 1: This option allows you to use "cf ic" for managing containers on IBM Containers while still using the Docker CLI directly to manage your local Docker host.
    Use this Cloud Foundry IBM Containers plug-in without affecting the local Docker environment:

    Example Usage:
    cf ic ps
    cf ic images

Option 2: Use the Docker CLI directly. In this shell, override the local Docker environment to connect to IBM Containers by setting these variables. Copy and paste the following commands:
    Note: Only Docker commands followed by (Docker) are supported with this option. 

    export DOCKER_HOST=tcp://containers-api.ng.bluemix.net:8443
    export DOCKER_CERT_PATH=/Users/adasilva/.ice/certs/containers-api.ng.bluemix.net/ef4c3396-1d7a-4843-8d05-fd255b6899d2
    export DOCKER_TLS_VERIFY=1

    Example Usage:
    docker ps
    docker images

你在用什么操作系统?你的docker(docker-v)的版本是什么?Mac OSX 10.11.2,刚刚更新了cf和docker。所以:Docker版本1.9.1,构建a34a1d5和cf版本6.15.0+fa1bfe2-2016-01-13最终帮助我解决了问题。我必须更改.ice文件夹中所有内容的所有者。它都归root所有,所以我想我需要sudo。我不知道这是怎么发生的。谢谢