title: Access devices on local network when running Docker for Mac
body: <p>I have some smart wifi devices on my network I can see from a script on my Mac. But running the same script from within a Docker container those devices are not visible.</p>
  
  <p>I assume this is related to Docker for Mac's inability to connect to the host's network using <code>--network host</code> or <code>network_mode: host</code>. I also assume this issue wouldn't exist on a Linux machine but I don't have one to test on.</p>
  
  <p>What is the workaround?</p>
  
  <p>Edit:</p>
  
  <p>Confirmed this worked fine when running inside an Ubuntu virtualbox, but I'd really not have to develop inside it.</p>