加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

google-app-engine – 如何在不使用boot2docker的情况下运行gcl

发布时间:2020-12-16 03:41:39 所属栏目:安全 来源:网络整理
导读:参见英文答案 DockerDaemonConnectionError when setting Google Cloud Managed VM in Ubuntu????????????????????????????????????3个 我正在尝试在我的机器上运行Dart应用程序,最终部署在Google App Engine上.我已按照此页面上的说明进行操作 https://www.

参见英文答案 > DockerDaemonConnectionError when setting Google Cloud Managed VM in Ubuntu????????????????????????????????????3个
我正在尝试在我的机器上运行Dart应用程序,最终部署在Google App Engine上.我已按照此页面上的说明进行操作

https://www.dartlang.org/cloud/

区别在于我已经运行了本地docker守护程序,我想使用它,并且不想真正使用VirtualBox.说明假设您使用的是boot2docker,它坚持使用VirtualBox安装VirtualBox VM并在此上运行docker守护程序.每次我试着跑

gcloud preview app run app.yaml

我明白了

google.appengine.tools.docker.containers.DockerDaemonConnectionError: 
Couldn't connect to the docker daemon because the required environment 
variables were not set. Please check the environment variables 
DOCKER_HOST,DOCKER_CERT_PATH and DOCKER_TLS_VERIFY are set correctly. 
If you are using boot2docker,make sure you have run "$(boot2docker shellinit)

我从我读过的内容中感觉到,您不必使用boot2docker,并使用本地docker守护程序实例.问题是我找不到有关如何执行此操作的任何说明.我希望有人能为我解答这个问题.此外,我给出的错误消息对我没有帮助,因为任何谷歌搜索我一直给我相同的使用答案,boot2docker.

最佳答案
我补充说,我从unstable(Debian)安装了Docker 1.3.2

DOCKER_OPTS="-d -H unix:///var/run/docker.sock -H tcp://localhost:2375"

到/ etc / default / docker,并设置

DOCKER_HOST=tcp://localhost:2375

使它工作.

此页面http://docs.docker.com/articles/https/包含有关如何为HTTPS配置docker的更多信息.

我创建了一个问题https://github.com/dart-lang/www.dartlang.org/issues/1162以更新Dart的设置说明.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读