I have multiple docker containers running in vagrant box exposing various ports, but I forgot to forward these ports in Vagrantfile. Is it possible to forward the necessary ports without rebooting the machine (initializing all those containers would take a long while) and if not, what is the fastest method in that case?
Is there some organized way to handle port mappings in vagrant? It is pain to know all the needed ports beforehand. Especially when you must add new service to already running docker network inside vagrant, you would have to stop everything just to expose a port on vagrant host. And how to deal with situation where docker chooses random port from it's host for port forwarding? Is this just precluded when using vagrant? All feels so fragile to even little change.