K
K
KirylLapouski2018-09-02 07:58:11
virtual box
KirylLapouski, 2018-09-02 07:58:11

How to forward a port in a virtual box with docker inside?

Good afternoon, there is a nodejs application that I managed to deploy using docker to a docker virtual machine (I use windows 10).
How to forward some port to the virtual machine so that when this port is requested from the browser, the request comes to the virtual machine?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
s4kro, 2018-09-03
@s4kro

As a rule, when starting a container, there are flags -p 9999:7001, which forwards 7001 containers to 9999 virtual machines.

E
Egor Mokeev, 2018-10-07
@zetamen

In the virtual machine settings Network - Adapter N - Port Forwarding
5bba516a124b1593083977.png5bba5187a5d79651567309.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question