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.

  • Getting docker pull to default pull from a private registry?
  • Build a Docker image remotely using Node.js
  • What is the reason for various “executable file not found in $PATH” errors?
  • ssh executing nsenter as remote command with interactive shell in golang to debug docker container
  • Docker: wordpress dev sandboxed environment
  • How to run a docker container as a daemon starting the rails project built inside?
  • Is there any other way to accomplish this ? any suggestions ?

    Thank you so much in advance !

  • How to set a docker container's iP?
  • Symfony cannot connect to mysql DB on docker ECS container
  • What is the purpose of defining VOLUME mount points within DockerFile rather than adhoc cmd-line -v?
  • Debug set always restart container docker
  • etcd3 docker persist discovery information
  • Should Fig be on inside of Vagrant VM or outside for OSX?
  • 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.