My environment: Windows 11 + WSL2 + Ubunto20.4+ Docker desktop
I started up a service (vaultwarden) via a docker-compose file. The service appeared to be running OK without any error as seen using the log. However I could not curl or telnet to vaultwarden docker network interface (172.20.0.2). It stalled producing minimum output or timed out …
curl -v 172.20.0.2
* Trying 172.20.0.2:80...
* TCP_NODELAY set
^C
"Containers": {
"08366d53960256ab1ee4fbadc65cd966ab0a787c41e47645e61985b08cfd9fbb": {
"Name": "vaultwarden",
"EndpointID": "fa9fc0ea68e087c4594fef26d90428281cb6b754d2412974629d23316b5a0f4e",
"MacAddress": "02:42:ac:14:00:02",
"IPv4Address": "172.20.0.2/16",
"IPv6Address": ""
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.19.154.7 netmask 255.255.240.0 broadcast 172.19.159.255
inet6 fe80::215:5dff:fe2e:eabc prefixlen 64 scopeid 0x20<link>
ether 00:15:5d:2e:ea:bc txqueuelen 1000 (Ethernet)
RX packets 23632 bytes 3454321 (3.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 251 bytes 14943 (14.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 14 bytes 964 (964.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14 bytes 964 (964.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Can someone know the reason for the connection time-out?