mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-28 12:31:04 +00:00
tests/docker: Set dns explicitly
Since https://github.com/moby/moby/pull/48290 the resolve.conf settings have changed, which were pulled into the gh runner image 20250504.1.0 mean we are getting hostname resolution issues. Try and set the dns explicitly to see if that helps. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
268197957d
commit
829b6c2997
@ -28,8 +28,8 @@ function run() {
|
||||
info "Running docker with runc"
|
||||
sudo docker run --rm --entrypoint nping "${image}" --tcp-connect -c 2 -p 80 www.github.com
|
||||
|
||||
info "Running docker with Kata Containers (${KATA_HYPERVISOR})"
|
||||
sudo docker run --rm --runtime io.containerd.kata-${KATA_HYPERVISOR}.v2 --entrypoint nping "${image}" --tcp-connect -c 2 -p 80 www.github.com
|
||||
info "Running docker with Kata Containers (${KATA_HYPERVISOR}) and --dns=8.8.8.8"
|
||||
sudo docker run --rm --dns=8.8.8.8 --dns=2001:4860:4860::8888 --runtime io.containerd.kata-${KATA_HYPERVISOR}.v2 --entrypoint nping "${image}" --tcp-connect -c 2 -p 80 www.github.com
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
Loading…
Reference in New Issue
Block a user