google-app-engine – gcloud连接到docker守护程序失败

前端之家收集整理的这篇文章主要介绍了google-app-engine – gcloud连接到docker守护程序失败前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我正在尝试测试新的托管VM功能,遵循此tutorial(使用OS X)

boot2docker安装没关系.
执行$(boot2docker shellinit)会给出以下输出

Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/guilhermetorres/.boot2docker/certs/boot2docker-vm/key.pem
    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/Users/guilhermetorres/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1

boot2docker状态打印运行

和boot2docker版本打印Boot2Docker-cli版本:v1.5.0

虽然当我尝试运行我的应用程序使用gcloud –verbosity调试预览应用程序运行

我收到了这个错误

ERROR    2015-03-05 00:36:39,816 containers.py:742] Failed to connect to Docker Daemon due to: [SSL: CERTIFICATE_VERIFY_Failed] certificate verify Failed (_ssl.c:581)

您可以看到EV变量:

DEBUG    2015-03-05 00:36:39,800 containers.py:669] Detected docker environment variables: DOCKER_HOST=tcp://192.168.59.103:2376,DOCKER_CERT_PATH=/Users/guilhermetorres/.boot2docker/certs/boot2docker-vm,DOCKER_TLS_VERIFY=1

完整的堆栈跟踪:

DEBUG: Running gcloud.preview.app.run with Namespace(admin_host=None,allow_skipped_files=False,api_host=None,appidentity_email_address=None,appidentity_private_key_path=None,auth_domain='gmail.com',blobstore_path=None,clear_datastore=False,cmd_func=PHP_executable_path=None,project=None,python_startup_script=None,quiet=None,require_indexes=False,show_mail_body=False,smtp_allow_tls=False,smtp_host=None,smtp_password=None,smtp_user=None,storage_path=None,trace_token=None,use_mtime_file_watcher=False,user_output_enabled=None,verbosity='debug',version=None).
WARNING: The [application] field is specified in file [/Users/guilhermetorres/meetapp-xmpp-docker/app.yaml].  This field is not used by gcloud and should be removed.
DEBUG: Found Cloud SDK root: /Users/guilhermetorres/google-cloud-sdk
DEBUG: Found App Engine SDK root: /Users/guilhermetorres/google-cloud-sdk/platform/google_appengine
DEBUG: Command sys.path: ['/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/antlr3','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/fancy_urllib','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/ipaddr','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/yaml-3.10','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/rsa','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/pyasn1','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/pyasn1_modules','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/httplib2','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/oauth2client','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/concurrent','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/cherrypy','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/distutils','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/requests','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/six','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/websocket','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/jinja2-2.6','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/webob-1.2.3','/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.1','/Users/guilhermetorres/google-cloud-sdk/./lib','/Users/guilhermetorres/google-cloud-sdk/lib/googlecloudsdk/gcloud','/Users/guilhermetorres/google-cloud-sdk/lib','/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python27.zip','/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/','/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin','/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac','/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages','/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk','/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old','/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload']
DEBUG: Found Cloud SDK root: /Users/guilhermetorres/google-cloud-sdk
Module [default] found in file [/Users/guilhermetorres/meetapp-xmpp-docker/app.yaml]
INFO: Looking for the Dockerfile in /Users/guilhermetorres/meetapp-xmpp-docker
INFO: Using Dockerfile found in /Users/guilhermetorres/meetapp-xmpp-docker
DEBUG: Found Cloud SDK root: /Users/guilhermetorres/google-cloud-sdk
DEBUG: Skipping pull for runtime: custom
DEBUG: Running [dev_appserver.py] with: --allow_skipped_files=False --application=meetapp-xmpp --auth_domain=gmail.com --clear_datastore=False --datastore_consistency_policy=time --dev_appserver_log_level=debug --enable_cloud_datastore=False --enable_mvm_logs=False --enable_sendmail=False --log_level=debug --require_indexes=False --show_mail_body=False --skip_sdk_update_check=True --smtp_allow_tls=False --use_mtime_file_watcher=False /Users/guilhermetorres/meetapp-xmpp-docker/app.yaml
DEBUG    2015-03-05 00:36:39,759 application_configuration.py:159] setting forwarded ports 5280,5222,8088
INFO     2015-03-05 00:36:39,759 devappserver2.py:726] Skipping SDK update check.
DEBUG    2015-03-05 00:36:39,799 wsgi_server.py:384] Failed to bind "fe80::1%lo0:56987": ('Unable to bind fe80::1%lo0:56987',error(49,"Can't assign requested address"))
INFO     2015-03-05 00:36:39,799 api_server.py:172] Starting API server at: http://localhost:56987
DEBUG    2015-03-05 00:36:39,DOCKER_TLS_VERIFY=1
ERROR    2015-03-05 00:36:39,816 containers.py:742] Failed to connect to Docker Daemon due to: [SSL: CERTIFICATE_VERIFY_Failed] certificate verify Failed (_ssl.c:581)
INFO     2015-03-05 00:36:39,817 api_server.py:588] Applying all pending transactions and saving the datastore
INFO     2015-03-05 00:36:39,817 api_server.py:591] Saving search indexes
Traceback (most recent call last):
  File "/Users/guilhermetorres/google-cloud-sdk/platform/google_appengine/dev_appserver.py",line 83,in Failed with error code [1]
Traceback (most recent call last):
  File "/Users/guilhermetorres/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py",line 551,in Execute
    result = args.cmd_func(cli=self,args=args)
  File "/Users/guilhermetorres/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py",line 1025,in Run
    result = command_instance.Run(args)
  File "/Users/guilhermetorres/google-cloud-sdk/./lib/googlecloudsdk/calliope/exceptions.py",line 86,in TryFunc
    return func(*args,**kwargs)
  File "/Users/guilhermetorres/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/run.py",line 317,in Run
    runner.Start(*runnables)
  File "/Users/guilhermetorres/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/appengine_adapter.py",line 413,in Start
    raise DevappserverExecutionError(return_code,argv)
ToolException: DevAppSever Failed with error code [1]
ERROR: (gcloud.preview.app.run) DevAppSever Failed with error code [1]
最佳答案
阅读本期https://github.com/docker/docker-py/issues/465后,卸载自制软件(brew remove python),Python一切正常.
原文链接:/docker/436147.html

猜你在找的Docker相关文章