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.

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 get Docker container ID alone
  • Symfony2 app slow response on MacOS & Boot2Docker
  • Difference between links and depends_on in docker_compose.yml
  • Access jboss 8080 port inside docker container
  • Docker Container(Dockerfile from other image) immediately exit - It is all about Dockerfile not command
  • Playframework: activator dist taking too long from within docker container
  • Is there any other way to accomplish this ? any suggestions ?

    Thank you so much in advance !

  • Why docker (Container-based technologies) are useful
  • Docker registry on EC2
  • bin//sonar-scanner: 103: exec: : Permission denied
  • sh on docker: syntax error: unexpected end of file (expecting “then”)
  • Docker not able to use all of Macbook's CPU cores
  • Automatically append docker container to upstream config of nginx load balancer
  • 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.