Docker container stuck at curl - no internet

i’m running docker on debian 12.

When i try to ping an address (eg. google.com), it resolves and i get response.

but whenever i try to curl (eg. google.com) it stucks.

after running curl -vvv google com, i get immidiate connection failed…