Only Several Docker Images Can Connect To The Internet

I’ve tried building several containers with different images. But not all of them can connect to the internet.

Containers that can connected to the internet:

  • alpine:3. Can ping
  • node:17-alpine3.14. Same as above.
  • fedora:35. Can do dnf upgrade.

Containers that can’t.

  • debian:11. Can’t do apt-get update.
  • ubuntu:22.0. Same as above.

No changes between trying these containers. run, delete, then try the next image.

Any clue ?

Just to be totally sure: it cannot connect to other internet resources either? Like the basic ping you mentioned for the other images?