Thank you for assisting ! But as per my requirement this should be inside docker container and the procedure that is given in the link you provided is same thing I am doing in my docker file. so if I will go with your links than time consumption will be same I think.
Even I have divided its in part like main,restricted and universe and currently I am just creating docker image for main only. here is the docker file
https://github.com/ekino/docker-images/blob/master/apt-mirror/main/DockerfileUsing command for creating docker image : docker build --rm --tag=ekino/apt-mirror:main .
Output of my terminal :
Sending build context to Docker daemon 4.608 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:14.04
---> 07f8e8c5e660
Step 1 : MAINTAINER Matthieu Fronton <
fro...@ekino.com>
---> Using cache
---> e68da7241dd1
Step 2 : ADD mirror.list-trusty-main /etc/apt/mirror.list
---> Using cache
---> 292937de26ba
Step 3 : ADD nginx.site-available.mirror-local /etc/nginx/sites-available/mirror.local
---> Using cache
---> 0ee784b76484
Step 4 : RUN apt-get update
---> Using cache
---> 71b6fd3a56b2
Step 5 : RUN DEBIAN_FRONTEND=noninteractive apt-get -y -o DPkg::Options::=--force-confold install apt-mirror nginx
---> Using cache
---> 399cc4d6ac25
Step 6 : RUN mkdir -p /var/www/mirror.local
---> Using cache
---> 5da2959a32e2
Step 7 : RUN mkdir -p /mirrors
---> Using cache
---> 25d89fb23674
Step 8 : RUN apt-mirror
---> Running in a77e1bcaa33c
Downloading 56 index files using 20 threads...
Begin time: Tue May 12 05:29:35 2015
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 12 06:22:00 2015
Processing tranlation indexes: [TTTT]
Downloading 60 translation files using 20 threads...
Begin time: Tue May 12 06:22:00 2015
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 12 06:23:18 2015
Processing indexes: [PPPP]
22.5 GiB will be downloaded into archive.
Downloading 12194 archive files using 20 threads...
Begin time: Tue May 12 06:23:19 2015