Closed subhtak closed 4 months ago
Try checking your /etc/resolv.conf
. What name servers does it refer to?
I updated the content of /etc/resolv.conf with the below lines. It didn't work. I disabled ubuntu farewall also. nameserver 8.8.4.4 nameserver 1.1.1.1 nameserver 8.8.8.8 options edns0 trust-ad search .
Is /etc/resolv.conf
a real file and not a symlink? What does cat /etc/resolv.conf
do inside the sandbox?
The issue has been resolved! /etc/resolv.conf
was a symbolic link of /run/systemd/resolve/stub-resolv.conf
I needed to bind both /etc and /run/systemd/resolve/ with read-write access and it worked.
isolate --dir=/etc/:rw --dir=/run/systemd/resolve/:rw --dir=/usr/bin --box-id=586 --share-net --run /usr/bin/node nettest.js
Network access is required for Java maven and dot net related programs.
isolate -p --cg --box-id=603 --chdir=JAVA11_MAVEN/src --share-net --run -- /usr/local/apache-maven-3.9.6/bin/mvn clean install
Tried doing wget and even that didn't work.
isolate -p --cg --box-id=818 --chdir=JAVA11_MAVEN/src --share-net --run -- /usr/bin/wget http://ftp.gnu.org/gnu/wget/wget2-2.0.0.tar.gz
Operating System: Ubuntu 23.04
Kernel: Linux 6.2.0-39-generic Architecture: x86-64
Any help will be much appreciated.