Macos 成功登录Bluemix后出现Docker和命名空间相关错误
我已经在我的主机OSX10.10.3中安装了Python(带有Pip和easysetup)、CloudFoundry和ICE 我已启动boot2docker并尝试Macos 成功登录Bluemix后出现Docker和命名空间相关错误,macos,docker,ibm-cloud,Macos,Docker,Ibm Cloud,我已经在我的主机OSX10.10.3中安装了Python(带有Pip和easysetup)、CloudFoundry和ICE 我已启动boot2docker并尝试ice登录。 成功登录尝试后: mbp-idan:~ idanadar$ boot2docker up Waiting for VM and Docker daemon to start... .o Started. Writing /Users/idanadar/.boot2docker/certs/boot2docker-vm/ca
ice登录
。
成功登录尝试后:
mbp-idan:~ idanadar$ boot2docker up
Waiting for VM and Docker daemon to start...
.o
Started.
Writing /Users/idanadar/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/idanadar/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/idanadar/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.
mbp-idan:~ idanadar$ ice login
API endpoint: https://api.ng.bluemix.net
Email> my-email-address
Password> my-password
Authenticating...
OK
Targeted org my-email-address
Targeted space dev
API endpoint: https://api.ng.bluemix.net (API version: 2.23.0)
User: my-email-address
Org: my-email-address
Space: dev
Authentication with container cloud service at https://api-ice.ng.bluemix.net/v2/containers completed successfully
You can issue commands now to the container service
我立即遇到以下错误:
Proceeding to authenticate with the container cloud registry at registry-ice.ng.bluemix.net
FATA[0005] Error response from daemon: Login: You must set a namespace before you login to the registry. See 'ice help namespace' (Code: 404; Headers: map[Connection:[Keep-Alive] Date:[Wed, 27 May 2015 18:57:41 GMT] Content-Type:[text/plain] X-Client-Ip:[79.176.226.146] X-Backside-Transport:[FAIL FAIL] Server:[nginx/1.7.9] X-Global-Transaction-Id:[380677271] Set-Cookie:[DPJSESSIONID=PBC5YS:481842763; Path=/; Domain=.registry-ice.ng.bluemix.net]])
docker is not available on your system or is not properly configured
Could not authenticate with cloud registry at registry-ice.ng.bluemix.net
You can still use IBM Containers but will not be able to run local docker containers, push, or pull images
boot2docker up
时提供的:
export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/idanadar/.boot2docker/certs/boot2docker-vm
export DOCKER_TLS_VERIFY=1
一旦我做了这个改变,我就得到了上面两个错误。如果我将注释掉.bash_profile中的上述三行,并且在boot2docker up
之后不运行boot2docker shellinit
,我将得到以下错误:
FATA[0000] Post http:///var/run/docker.sock/v1.18/auth: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
docker is not available on your system or is not properly configured
Could not authenticate with cloud registry at registry-ice.ng.bluemix.net
You can still use IBM Containers but will not be able to run local docker containers, push, or pull images
如果我将这三行替换为这一行:
export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375
我将得到以下错误,这有点不同。请注意-d
和缺少有关命名空间的错误
Proceeding to authenticate with the container cloud registry at registry-ice.ng.bluemix.net
FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
docker is not available on your system or is not properly configured
Could not authenticate with cloud registry at registry-ice.ng.bluemix.net
You can still use IBM Containers but will not be able to run local docker containers, push, or pull images
[docker]你知道哪种方法是让docker得到认可的正确方法吗?
这正在OS X 10.10.3中进行测试 [bluemix]知道名称空间吗
由于某些原因,它们似乎是相互关联的?ICE输出的错误实际上没有帮助 要解决这个问题: