Jenkins docker cache not working

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

Here is my docker file:

  • “Connection Refused” on Docker node container
  • scan-and-scroll doesn't work from Docker with a ElasticSearch cluster placed outside
  • Docker loading kernel modules
  • Vagrant: use provider and provision togather
  • COPY of existing file in Dockerfile fails mysteriously
  • TLS verification issue when setting up remote docker interpreter in pycharm in Windows
  • # DOCKER-VERSION 0.10.0
    FROM docker-index.my.com/ruby:1.9.3
    MAINTAINER my.com
    
    # 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?

  • executing mysql script docker
  • Docker api: push an image to docker hub private repository
  • How to start postgresql and rsync during docker run?
  • How avoid docker0 interface starting?
  • Follow Symbolic link when creating dockerfile [duplicate]
  • Variable cgroups parametres in Docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.