Answer the question
In order to leave comments, you need to log in
How to forward a port from an internal IP to the localhost port?
Actually, several containers are running in Docker, there are 3 separate containers with db, and access to them is possible inside the network using the container name as the host, say `mysql:3306` the hostname is static and the IP can change, the question is how (if possible) to transfer port from host to local so I can access `mysql:3306` via `localhost:3306` and `127.0.0.1:3306`?
Something like ```ssh [email protected] -L 3306:127.0.0.1:3306``` but for the internal network?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question