Setup the ssh tunnel from the Mac host: ssh -L 56789:10.0.100.200:3306 starts an ssh tunnel with the TCP port 56789 open on localhost, forwarding through the ssh tunnel to port 3306 on a host with IP address 10.0.100.200 on the remote network ![]() In this example I needed to provide a solution to connect from a docker container on a Mac laptop to a database hosted in a subnet far far away. ![]() In some very edge use cases you may want to temporarily connect to a remote service on a different network from within a docker container.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |