Jenkins docker cache not working

I’m trying to build a docker file under jenkins docker build .

Here is my docker file:

  • docker notary : tls: oversized record received with length 20527
  • How to install Dockerfile from GitLab to allow pull and commit
  • Docker: Is it necessary to mount a new partition
  • Executing `ls` on docker with a shared volume results in “No such file or directory”
  • Cannot write into ~/.m2 in docker maven container
  • Eureka on docker container : unknown host exception
  • # DOCKER-VERSION 0.10.0
    # Never install a ruby gem docs
    RUN echo "gem: --no-rdoc --no-ri" >> ~/.gemrc
    RUN mkdir /my_app
    WORKDIR /my_app
    RUN gem install bundler
    RUN gem install bluepill
    ADD Gemfile /my_app/Gemfile
    ADD Gemfile.lock /my_app/Gemfile.lock
    RUN bundle install
    ADD . /my_app

    Note that I’m using the common caching method for bundle install, the cache works locally but not on jenkins build, what is the problem of running this under jenkins?

  • Pycharm 2016.1.4 (newest) and Docker issue
  • Rename a project by keeping containers
  • Addressing issues with Apache Spark application run in Client mode from Docker container
  • Scope of the 'read-only' flag when mounting a volume in Docker
  • boot2docker: what does poweroff do to all my docker containers?
  • docker postgres with initial data is not persisted over commits
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.