Yum command doesn't work inside the container

The container is able to ping the host and on host i’m able to download packages using yum command. But for some reason the yum command doesn’t seem to work on conatiner .

Below is the kind of error i’m getting:
http://mirror.nbrc.ac.in/centos/7.6.1810/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.nbrc.ac.in/centos/7.6.1810/os/x86_64/repodata/repomd.xml: (28, ‘Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds’)

The ip addr output of container is:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
1716: eth0@if1717: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 16:93:56:92:d6:fc brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.122.45/24 brd 192.168.122.255 scope global dynamic eth0
valid_lft 2993sec preferred_lft 2993sec
inet 192.168.254.124/24 brd 192.168.254.255 scope global eth0:0
valid_lft forever preferred_lft forever
inet 192.168.254.1/24 brd 192.168.254.255 scope global secondary eth0:1
valid_lft forever preferred_lft forever
inet6 fe80::1493:56ff:fe92:d6fc/64 scope link
valid_lft forever preferred_lft forever

The ifconfig output of host :
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1450
inet 192.168.0.52 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::f816:3eff:fe4a:1ce6 prefixlen 64 scopeid 0x20
ether fa:16:3e:4a:1c:e6 txqueuelen 1000 (Ethernet)
RX packets 41302850 bytes 80025799393 (74.5 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 39942174 bytes 8340776346 (7.7 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 39460 bytes 7872941 (7.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 39460 bytes 7872941 (7.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:52:5c:bf txqueuelen 1000 (Ethernet)
RX packets 2609 bytes 205973 (201.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1400 bytes 228171 (222.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0-nic: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 52:54:00:52:5c:bf txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

What could be the possible reasons for the yum command to fail. ?