Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Pre-fetch docker images onto the Vagrant box #57

Open
olberger opened this issue Nov 2, 2019 · 4 comments
Open

Pre-fetch docker images onto the Vagrant box #57

olberger opened this issue Nov 2, 2019 · 4 comments

Comments

@olberger
Copy link
Contributor

olberger commented Nov 2, 2019

In my tests with (relatively slow) network (ADSL), the fetching of images is the main bottleneck to UX.

I guess it should be feasable to not rely on a generic Vagrant box, but instead create a dedicated box including the pre-fetched Docker images.

Hth,

@smk4664
Copy link
Member

smk4664 commented Nov 5, 2019

It is fairly easy pre-fetching images, but then we have to keep them up to date. The vagrant boxes need to be built using the system it is to be installed on. So a libvirt box requires to be built in libvirt, VirtualBox boxes require being built within VirtualBox.

@smk4664
Copy link
Member

smk4664 commented Nov 24, 2019

@olberger I have been thinking on this, I think a solution could be to offer the option to load the images from a local directory. This way, if you find yourself repeatedly starting fresh with vagrant, you could save the images using docker save, and then load them from the local directory. This way we don't have to build a new box every time an image is updated, and the boxes can stay relatively small.

@Mierdin
Copy link
Member

Mierdin commented Nov 26, 2019

So, a few things that might impact this discussion:

  • MP3 is hopefully going to drastically cut down on image size across the board.
  • If users are frequently rebuilding their Vagrant environments, it might be better to fix that than to add on the complexity of saving images locally

Just my $0.02

@olberger
Copy link
Contributor Author

olberger commented Mar 1, 2020

I've been looking for some hints on that issue, and found https://github.com/jlk/docker-registry-cache

It looks fairly old, but maybe that could be handy. Just in order to keep a note somewhere. Will report if I'm testing such options.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants