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.

  • How to setup a docker swarm cluster with AWS ubuntu machine [closed]
  • Cannot start service app: oci runtime error - executable file not found in $PATH
  • AWS BeansTalk expose docker port
  • docker-compose volumes_from equivalent with version 3
  • Can't deploy artifact to KIE-server via Drools workbench because of “ConversationId not valid - missing releaseId”
  • Docker - How to disable PHP ext / modules
  • 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

  • How to run docker to other server machine
  • FOS user bundle doesn't keep logged session
  • Separation of 2 docker containers running the same web application
  • Docker command with build / run / etc. “too many open files”
  • Using Kubernetes or Apache mesos
  • Unable to dockerize nginx and index.html page
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.