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 perform live migration for dockers?Is there any source available to perform it
  • Docker Distributed Application Bundle(DAB) no network creation options
  • Kubernetes PullImageError using Docker Hub with a private image
  • SSH tunneling to remote server with docker
  • crontab not working on Centos Docker container
  • How to rebuild and update a container without downtime with docker-compose?
  • 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 _directly_ COPY files to “Program Files (x86)” folder in a Windows container?
  • Run nano server container on a Raspberry PI 3
  • How to clear Docker task history
  • Oracle Instant Client - with Docker and PHP
  • How to access mysql that which is in docker container from another host machine?
  • Can't run docker on os X with boot2docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.