PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 18, 2022

[FIXED] Why didn't Docker create a BRIDGE network when I installed?

 October 18, 2022     docker     No comments   

Issue

On my computer I have :

NETWORK ID          NAME                DRIVER              SCOPE
661118d67505        Default Switch      ics                 local
eae6a3536ef1        nat                 nat                 local
9d0b1f0209f6        none                null                local

but on the server I just created it installed a bridge network.

I need to create this bridge but don't know what IPs to specify? How can I view the hosts file on the server to see how it is configured?

NEW EDIT

I found that I could run docker network inspect bridge on the other computer to see how it was configured.

That answered one question.

Then, I uninstalled docker and reinstalled. When I ran the docker network ls again I got :

NETWORK ID          NAME                DRIVER              SCOPE
b490355c4a0c        bridge              bridge              local
d64dcade1e83        host                host                local
f7dd78a787db        none                null                local

I now how the bridge network on my computer. But: now, when I run the docker network ls command on my computer, I get this error:

error during connect: Get http://127.0.0.1:2375/v1.40/networks: dial tcp 127.0.0.1:2375: connectex: No connection could be made because the target machine actively refused it

I am forced to use the EXPOST DAEMON under general settings.

Then, I opened my VS2019 project and was told that DOCKER was configured to use LINUX and asked if I wanted to switch to windows. When I said yes, it reconfigured my networks back to what I had originally. I am so confused?

Do I need to run DOCKER with windows config (I imagine I do since I am publishing a .NET API)... if that is the case, what should my networking be? Please help !

Ethernet adapter vEthernet (**Default Switch**):

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::6d5e:5403:3483:35e0%21
   IPv4 Address. . . . . . . . . . . : 172.17.17.161
   Subnet Mask . . . . . . . . . . . : 255.255.255.240
   Default Gateway . . . . . . . . . :

from IPCONFIG...

Please note: this entire question is to help solve this other question.


Solution

Not sure I fully understand your question , but by default containers connect to the default bridge network: $ docker network ls to see it , usually ifconfig shows it as docker0.

Here you can find more info concerning docker network driver types: https://docs.docker.com/network/



Answered By - dejanualex
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing