Score:0

Docker does not create bridge network by default

ua flag

I have two laptops both with Xubuntu, one has version 20.04 and the other has version 22.04.
The 20.04, when I create a dockerfile and add commands to download packages, they download without problem sudo apt-get update.
The 22.04, when I create a dockerfile and add commands to download packages, it is impossible to download the packages using sudo apt-get update, also none of the containers created in docker using xubuntu 22.04, none of the containers have internet connection.
I have identified that docker in version 20.04 creates by default the bridge network but in version 22.04 it does not create it, does anyone know how can I add the default bridge network that docker creates?
I was recreating a network similar to how it looks in the inspection of the bridge network but I can't get it right.

Note: The Xubuntu 22.04 docker does not create the bridge network but in 20.04 it does.

dummyuser avatar
uy flag
Hi @eaaldark, can you add the output of `docker network ls | grep bridge` to your question? Is there a DNS Server running in a different network?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.