Cannot run job on mac

I’m following the official tutorial on mac here with the exact same parameters. When I start the command nomad job run example.nomad, I have the following error:

2020-05-05T09:23:13.847+0200 [ERROR] client.driver_mgr.docker: failed to start container: driver=docker container_id=1da0b6f7a3c4694592899c6d3d0c11174e68b57c24ee9fdd478da7ad82c2c5f9 error=“API error (500): driver failed programming external connectivity on endpoint redis-f5eace38-506b-240b-ee77-80b9b6f50e97 (36a6c57a9930c7191c56566377c33a92e5997589dc7408d91fe2ef0db87801f2): Error starting userland proxy: listen tcp bind: cannot assign requested address”

I checked with lsof and the port 22793 is not already openned. Does anyone know how I can fix this ?

Hi @abour! You’re most likely running into, which is a problem with port forwarding on Docker for Mac 2.2.0. The fix needs to come from the folks at Docker, but in the meantime take a look at the workarounds in that issue.

Ok thanks a lot @tgross