Unable to access internet in Docker on Nvidia Drive Orin

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

I am trying to build a docker image, which requires installation of external libraries which can be downloaded over the internet. My Drive Orin has an active internet connection, i.e., I am getting response from ping 8.8.8.8 and also able to browse in Chromium browser. But when the docker tries to access the internet, I am getting the below error, Requesting your kind support to resolve this issue.

Please try adding the ‘–network=host’ option to your Docker build command and see if it resolves the problem you’re facing.

I have tried using the same method, but same error

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Could you kindly share the complete docker build command, along with its corresponding output messages, directly in text form (rather than sharing it as an image)? This will assist us in troubleshooting the issue more effectively and be more searchable for other developers.