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.

  • How to enable Redmines 'adding of issues' when using Docker?
  • Spring Boot in Docker throwing an exception 'hibernate.dialect' not set
  • Docker machine is active, but shown as aborted in Virtual Box
  • Dotnet Core publish to IIS from Mac
  • Error building a docker in Windows 10
  • How to edit file after I shell to a docker container?
  • Is there any other way to accomplish this ? any suggestions ?

    Thank you so much in advance !

  • access data volume of node modules outside docker container
  • docker commit not saving changes made by java installation
  • Docker to run X applications while connected through SSH
  • Container as volume pattern in windows/vagrant env
  • How to configure a high-availability cluster of MariaDB and Redis in Mesos or CoreOS
  • Docker swarm with Glassfish 3.1.2.2 image fails to start nodes
  • 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.