Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 成功登录Bluemix后出现Docker和命名空间相关错误_Macos_Docker_Ibm Cloud - Fatal编程技术网

Macos 成功登录Bluemix后出现Docker和命名空间相关错误

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

我已经在我的主机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.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
    
  • 我之前所做的唯一配置是在~/.bash_配置文件中添加以下内容,这是Docker在使用
    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输出的错误实际上没有帮助

    要解决这个问题:

  • 将原来的3行添加回~/.bash_配置文件
  • 在Bluemix.net中创建了名称空间
  • 在那之后,一切都恢复正常,一切正常