Running the linuxserver/nextcloud docker image gives a cannot reache update server error

image

How to solve?

It seems that the problem was caused by my configured DNS server, which did not reply to the DNS queries, which led to Nextcloud being unable to contact the update server.