Once you go through these steps, you should be able to extend the idea into your on-premises network.
On this example, I use Vagrant and VirtualBox on my MacBook and create containers with IP addresses shown on the table below.
(No port forwarding, please.) So here's how to do it. Sometimes I want to use Docker containers like regular VMs, creating a bridge on a Docker host, having containers on the same subnet, and then logging into them via port 22.