containers / skopeo

Work with remote images registries - retrieving information, images, signing content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy to docker-daemon overlay2 storage

half2me opened this issue · comments

Is there a way to copy an image to the overlay2 storage that docker daemon uses without running the docker daemon? I'd like to just specify a path on the filesystem where the overlay2 storage is.
I'm running in an environment where I cannot run docker daemon but I need to load the images into the overlay2 storage so when docker daemon is started it has those images preloaded

Thanks for reaching out.

That feature doesn’t exist, and I don’t think it can be reasonably supported. Docker’s image storage is, presumably, an internal implementation detail of Docker; so, running docker pull or maybe docker load (incl. using a docker-daemon: destination in Skopeo), perhaps in a container/VM/some other isolation, would be the only supportable way to modify that storage.

thanks @mtrmac for clearing that up. I'm struggling to build a customised raspberry pi image with some preloaded docker images already loaded. I wanted to avoid exporting to tar files and running docker load on first boot as that slows things down quite a lot, especially with slow sd cards. I wonder if there is any other way to achieve this.

A friendly reminder that this issue had no activity for 30 days.