sorry for bumping the ancient thread, but i had the same problem and the solution was to enable ipv6 in docker itself.
if you’re using docker-compose, you also have to follow the steps to enable ipv6 in the docker network, otherwise swift-nio will hang and not even report the error.