New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker registry proxy for travis builders #6418
Comments
This would be a really good addition to Travis CI. Many of docker images are based on common images, like the official Ubuntu ones, adding a local cache would certainly speed things up. I'm looking forward to seeing it implemented. |
In case it saves anyone else time who is thinking of testing the same, I tried using Google's Container Registry mirror of Docker Hub to see if it would improve pull performance (given that Travis' sudo-enabled jobs run on GCE): Eg using: install:
- echo 'DOCKER_OPTS="$DOCKER_OPTS --debug --registry-mirror=https://us-mirror.gcr.io"' | sudo tee -a /etc/default/docker > /dev/null
- sudo service docker restart
- docker system info
script:
- docker --log-level debug pull ubuntu:latest
- docker --log-level debug pull ubuntu:16.04
- docker --log-level debug pull heroku/heroku:16
- sudo cat /var/log/upstart/docker.log Example run: Log output of note:
Thus sadly: ...so my idea of updating It's possible a Travis registry mirror hosted in the same GCE zone as the sudo-enabled jobs themselves might still be faster of course. |
I suggest to give this perhaps a bump. If Travis has the space and the images were coming from a place nearby (I think for Composer (PHP) there are similar speedups but Packagist packages are never that fast on Travis in my observation). Perhaps it's possible to have something similar for the Docker Hub registry? I see other Travis issues where devs try around with image caches but I think that's counter-productive and it also won't scale well by providing little benefit b/c of S3 speed. |
In issue #9384 I posed the question "Does Travis-CI already have a Docker registry mirror configured as a "pull through cache"?" It seems the answer is no. It appears that the issue can be more severe than just time to build an image. Issue #9384 identifies situations where the builds fail because some bandwidth limit is hit. Does anyone have experience with builds downloading and producing multiple artifacts >4GB? |
Seems like this was partially implemented, as its causing problems with some builds. See here for details: |
A line with 'sudo rm /etc/docker/daemon.json' is added because of issues moby/moby#39120 and travis-ci/travis-ci#6418
Hi, do you have any local to builders docker-registry proxy?
https://blog.docker.com/2015/10/registry-proxy-cache-docker-open-source/
The text was updated successfully, but these errors were encountered: