title: Ssh from docker container into a different host
body: <p>I work on macOS using the remote Vscode extension to develop/build embedded software in a docker container with Ubuntu 20.04. This target is connected to the Mac through an ethernet port. To send the code on the target I use the scp command, from the mac, to the static IP address of the target.</p>
  <p>IPs (static) are:</p>
  <p>Target: 192.168.0.1</p>
  <p>Mac: 192.168.0.2</p>
  <p>I don't want to build the software on the docker container and then use the scp command in a terminal opened in the Mac. I would like to do everything within the container.
  However, even if I set the container with the &quot;-net=bridge&quot;, I cannot ping the target directly from inside the container itself.</p>
  <p>Do you have any suggestions?</p>