Hi@akhtar,
You can create local yum inside docker. For that you have to mount your base yum with your container.
$ docker run -it --name container -v base_yum_file:/dvd centos:latest
Now create local yum inside docker.
$ vi /etc/yum.repos.d/docker.repo
[tag]
baseurl=file:///dvd
gpgcheck=0
Hope this will help you.
Thank You