How to create local mirror for ubuntu inside docker container?

I wants to create local mirror for Ubuntu inside docker container. Here is the link I am following from git hub. https://github.com/ekino/docker-images

Now the issue is that it is taking too much time to download the whole packages,even though I divided its in part like main,restricted and universe but it is downloading packages of 22 GB. My system is powered on since last 48 hrs but still its not been completed. yes I have enough speed of Internet. But I think its goes in an infinite loop and stuck somewhere.

  • Docker volume option create folder as “root” user
  • docker-registry v2.2.0 S3 config not overwritten
  • How to specify ssl connection with Nginx stream?
  • docker-compose can't connect to external network
  • Bluemix port binding
  • Docker : using pv (pipe viwer) output nothing on build process
  • Is there any other way to accomplish this ? any suggestions ?

    Thank you so much in advance !

  • Add remote tag to a docker image
  • How to visually see the browser being automated on Multihost docker on windows 10 and Linux ?
  • Docker upgrade issue cent os 6.5
  • Is it possible to update Docker on CoreOS without updating fleet and etcd?
  • Docker UCP Content Trust not work, notary
  • How to rename a docker image in the remote registry
  • One Solution collect form web for “How to create local mirror for ubuntu inside docker container?”

    The docker container copy-on-write file system is slow, you want to make sure the data you download gets written to a fast file system. That’s what the VOLUME instruction is for in a Dockerfile.

    Then to persist that data, you would have to mount that volume on your host file system or use Docker data containers. See this article for more info on volumes.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.