Hi,
I have a problem with connect to my docker containers and I can’t figure out how to resolve it. Could you help me?
// I’m not a specialist of networks, I don’t understand all this stuff, sorry for that.
I’m using Docker for Windows… on Windows
Docker network configuration (from settings window) is:
Hyper-V subnet: 10.0.75.0/28
Docker subnet: 172.28.5.0/24
I created a Docker network
docker network create --driver=bridge --subnet=172.28.0.0/16 --ip-range=172.28.5.0/24 --gateway=172.28.5.254 webdev
I added a route on my host
route add -p 172.28.0.0 MASK 255.255.0.0 10.0.75.2
I created a container
docker run `
-d `
--name pma `
--network webdev `
--ip 172.28.0.12 `
-p 8012:80 `
-p 8112:443 `
--link mysqld:db `
-e PMA_USER=root `
-e PMA_PASSWORD=qwerty `
phpmyadmin/phpmyadmin
Everything was working by the months, but yesterday stopped.
I mean:
- I can open a phpmyadmin via http://localhost:8012
- I can NOT open a phpmyadmin via http://172.28.0.12 (ERR_CONNECTION_TIMED_OUT)
This is a ipconfig /all
result from my host
PS C:\WINDOWS\system32> ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : DESKTOP-UIJD67J
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
Physical Address. . . . . . . . . : 6C-2B-59-5C-BE-81
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Połączenie lokalne* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
Physical Address. . . . . . . . . : 98-2C-BC-39-61-D9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Połączenie lokalne* 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
Physical Address. . . . . . . . . : 9A-2C-BC-39-61-D8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Wireless-AC 9462
Physical Address. . . . . . . . . : 98-2C-BC-39-61-D8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::e8eb:eef9:dc6c:4d3b%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.3.105(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : wtorek, 18 lutego 2020 20:27:43
Lease Expires . . . . . . . . . . : czwartek, 20 lutego 2020 20:27:43
Default Gateway . . . . . . . . . : 192.168.3.1
DHCP Server . . . . . . . . . . . : 192.168.3.1
DHCPv6 IAID . . . . . . . . . . . : 127413436
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-F9-B2-30-98-2C-BC-39-61-D8
DNS Servers . . . . . . . . . . . : 192.168.3.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Połączenie sieciowe Bluetooth:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : 98-2C-BC-39-61-DC
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter vEthernet (Default Switch):
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
Physical Address. . . . . . . . . : 00-15-5D-CE-1A-D7
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::9940:5c51:d761:ffb%21(Preferred)
IPv4 Address. . . . . . . . . . . : 172.18.108.49(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.240
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 352327005
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-F9-B2-30-98-2C-BC-39-61-D8
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
And my routes
PS C:\Users\astor> netstat -rn
===========================================================================
Interface List
3...6c 2b 59 5c be 81 ......Realtek PCIe GbE Family Controller
14...98 2c bc 39 61 d9 ......Microsoft Wi-Fi Direct Virtual Adapter
8...9a 2c bc 39 61 d8 ......Microsoft Wi-Fi Direct Virtual Adapter #2
11...98 2c bc 39 61 d8 ......Intel(R) Wireless-AC 9462
10...98 2c bc 39 61 dc ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
21...00 15 5d ce 1a d7 ......Hyper-V Virtual Ethernet Adapter
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.3.1 192.168.3.105 50
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
172.18.108.48 255.255.255.240 On-link 172.18.108.49 5256
172.18.108.49 255.255.255.255 On-link 172.18.108.49 5256
172.18.108.63 255.255.255.255 On-link 172.18.108.49 5256
172.28.0.0 255.255.0.0 On-link 172.18.108.49 5001
172.28.255.255 255.255.255.255 On-link 172.18.108.49 5256
192.168.3.0 255.255.255.0 On-link 192.168.3.105 306
192.168.3.105 255.255.255.255 On-link 192.168.3.105 306
192.168.3.255 255.255.255.255 On-link 192.168.3.105 306
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.3.105 306
224.0.0.0 240.0.0.0 On-link 172.18.108.49 5256
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.3.105 306
255.255.255.255 255.255.255.255 On-link 172.18.108.49 5256
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
172.28.0.0 255.255.0.0 10.0.75.2 1
===========================================================================
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 331 ::1/128 On-link
11 306 fe80::/64 On-link
21 5256 fe80::/64 On-link
21 5256 fe80::9940:5c51:d761:ffb/128
On-link
11 306 fe80::e8eb:eef9:dc6c:4d3b/128
On-link
1 331 ff00::/8 On-link
11 306 ff00::/8 On-link
21 5256 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
I have no idea what is wrong here.