Dockerfile dosen't work on Google managed Virtual Machine

I am building a web-server on Google managed VMs,which uses dockerfiles to load the settings.In my case,that is to set up the opencv-python.

I have tested it successfully on local sever using “gcloud preview app run ./app.yaml” and everything works perfectly.

  • Get hostname in Logstash running in a Docker container
  • docker started via shelljs not responding to input in interactive mode
  • How to auto switch between HAProxy Peers
  • Deploying a cluster (i.e. MongoDb / ElasticSearch) with Docker and linking to Java Application
  • Azure - Docker : Remote error : bad certificate :
  • How to do dynamic port mapping in docker and proxy?
  • but when i deploy it to the google App Engine and SSH into the VM instance,it seems that it did not run the command listed in dockerfiles.

    Question 1 : Is there a way that I can see the output(logging) when the instances are building docker image.The logging looks like following on local server

    Starting module "default" running at: http://localhost:8080
    INFO     2015-03-20 17:43:34,777] --------------------  DOCKER BUILD  --------------------
    INFO     2015-03-20 17:43:34,784] Starting admin server at: http://localhost:8000
    INFO     2015-03-20 17:43:34,957] ---> 92880230fd9f
    INFO     2015-03-20 17:43:34,958] Step 1 : RUN apt-get update && apt-get install -y python-mysqldb
    INFO     2015-03-20 17:43:35,076] ---> Running in b27ba0e6693a

    Question 2:any mistakes in my dockfiles

     FROM google/appengine-python27
    RUN apt-get update && apt-get install -y python-mysqldb
    RUN apt-get update && apt-get install -y build-essential
    RUN apt-get update && apt-get install -y cmake git libgtk2.0-dev pkg-          config libavcodec-dev libavformat-dev libswscale-dev
    RUN apt-get update && apt-get install -y python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
    RUN cd $HOME;git clone
    RUN cd $HOME;git clone
    RUN cd $HOME/opencv;mkdir build
    RUN cd $HOME/opencv/build;cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local $HOME/opencv
    RUN cd $HOME/opencv/build;make -j7
    RUN cd $HOME/opencv/build;make install
    RUN export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages
    ADD . /app

  • Spring Properties from Docker Environment Variables
  • Docker cannot link to a non running container - fixed with a reboot
  • docker swarm - if the container in a service dies on an error, will the task be replicated elsewhere?
  • Tensorflow linear classifier. I can't run it on Docker
  • Docker container for Postgres 9.1 not exposing port 5432 to host
  • Docker on Windows 10 doesn't start
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.