bug: instance links fail to work after container restart

The internal port was being randoming generated after each start but the
old value was cached in docker.