Container apt update fails, connection timeout

Unable to run apt update
Get error: connection timed out
Same result within multiple containers from multiple linux-based images

Occurring in:

  • Ubuntu open-liberty:latest
  • rust:latest
  • node:latest

My understanding is that networking is enabled by default. Also tried running container with --network host with no success.

Both host and another ubuntu machine on the LAN are reaching the internet fine. LAN Ubuntu machine is able to run apt update without issue.

Thanks in advance.


Docker version 20.10.23, build 7155243