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.

  • CentOS 7 : docker in docker: “Error: No space left on device”
  • Docker Nginx 502 Bad Gateway ipv6
  • PHP application moving to Docker failed to connect on AWS
  • DOCKER_OPTS are reset after system reboot
  • Gitlab-CI multi runner start docker container, scripts now work
  • Multiple site docker swarm with enforced topology
  • 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 see which docker volume is or was being used by which container
  • How does docker manage to get a return code of 200 instead of 401
  • Why is docker build taking so long to run?
  • How to restart tcserver instance within docker?
  • Docker compose run migrations on django web application + postgres db
  • Docker image already pushed issue?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.