Skip to content

On windows WSL host.docker.internal works from host to container but not from container to host #28477

@joaopalma5

Description

@joaopalma5

Issue Description

inside container
wget -qO- http://host.docker.internal:11434/api/tags
wget: can't connect to remote host (10.89.1.1): Connection refused
~ $ ^C

if you create and inspect a network EnableIPv4 is false, I think the issue is where
{
"Name": "metalo",
"Id": "fa58b32511195acd696223c29f11da8ca2db213c93676347747d95ed13af52a2",
"Created": "2026-04-09T16:52:42.142965222+01:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv4": false,
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {
"driver": "host-local"
},
"Config": [
{
"Subnet": "10.89.0.0/24",
"Gateway": "10.89.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {},
"Options": {},
"Labels": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions