Cannot get a distributed deployment to work on docker

I ended solving this this way: