title: Can Docker be used to run Linux CLI tools from macOS?
body: <p>I am writing software on macOS.  As a subroutine I would like to call certain Linux-only CLI tools, e.g., <code>&gt; mytool inputfile</code>.  Can I use Docker for Mac to compile the Linux tool inside a container and call it from outside the container (after copying input files into the container?).  And if I can, is it a good idea or will there be issues installing and compiling Linux packages?</p>
  <p>From my understanding of docker as basically a lightweight VM that uses a stripped down version of a Linux distribution, this approach seems to make sense, but the stripped down aspect might be an impediment.</p>