title: Can I query a remote docker registry for image information (such as OS)?
body: <p>Is there any command I can run against a docker registry (public and private) which can return the image operating system?  Specifically, I'm looking to distinguish between Linux and Windows images, not between linux distros. </p>
  
  <p>The reason is that we have a docker-based build system today for which we're trying to add support for Windows containers, and LCOW.  In theory, Linux builds can take place on either Windows or Linux servers, so we want the tool to have the ability to automatically prepend <code>sudo</code> on the docker command and <code>--platform</code> on the pull/run commands (as well as some other things) when appropriate.  However, this requires that we automatically detect the OS of the image. I have looked through the docker documentation and was unable to find any support for such a query, but perhaps I missed something.</p>
  
  <p>As I'm writing this, I'm realizing that if the docker client could automatically deduce the OS of an image, they probably would have built this detection into the client rather than introduce the new <code>--platform</code> argument on all the various docker commands. </p>