How to use gcloud preview application without boot2docker?

I am trying to run a Dart application on my machine in order to eventually deploy to the Google App Engine. I followed the instructions found on this page.

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

The difference is that I already have a local docker daemon that I would like to use, and I don't want to use VirtualBox. The instructions assume that you are using boot2docker, which insists on using VirtualBox to install the virtual virtual machine and launches the docker daemon. Every time I try to run

gcloud preview app run app.yaml 

I get

 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) 

I feel like I read that you do not need to use boot2docker and use an instance of the local docker daemon. The problem is that I cannot find any instructions on how to do this. I hope someone answers me for that. Also the error message that was given to me does not help me, since any google search I do gives me the same use answer, boot2docker.

+8
google-app-engine docker dart boot2docker gcloud
source share
1 answer

I installed Docker 1.3.2 from unstable (Debian), added

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

to /etc/default/docker and install

 DOCKER_HOST=tcp://localhost:2375 

for it to work.

This page http://docs.docker.com/articles/https/ contains additional information on how to configure docker for HTTPS.

I created a problem https://github.com/dart-lang/www.dartlang.org/issues/1162 to update the setup instructions for Dart.

+3
source share

All Articles