如何使用gcloud预览应用程序运行没有boot2docker?

Jam*_*ord 8 google-app-engine dart docker gcloud boot2docker

我正在尝试在我的机器上运行Dart应用程序,最终部署在Google App Engine上.我按照本页上的说明进行操作

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

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

gcloud preview app run app.yaml
Run Code Online (Sandbox Code Playgroud)

我明白了

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)
Run Code Online (Sandbox Code Playgroud)

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

Gün*_*uer 3

我从unstable(Debian)安装了 Docker 1.3.2,添加了

DOCKER_OPTS="-d -H unix:///var/run/docker.sock -H tcp://localhost:2375"
Run Code Online (Sandbox Code Playgroud)

/etc/default/docker,并设置

DOCKER_HOST=tcp://localhost:2375
Run Code Online (Sandbox Code Playgroud)

使其发挥作用。

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

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