share ports between docker and vagrant
I tried: docker guest 5000 <> host 5000 <> vagrant guest 5000
Vagrant tells me on vagrant up that (host) port 5000 is already in use.
One Solution collect form web for “share ports between docker and vagrant”
You can’t have two things listen on the same port unless you have two network cards in your machine. Because you’re running your docker container that is exposing port 5000 and your vagrant box exposes port 5000, you’re getting a conflict.
You will have to expose a different port on one or the other if you want them both to run at the same time.