title: Quarkus: Testing native image built in container
body: <p>The <a href="https://quarkus.io/guides/building-native-image" rel="nofollow noreferrer">Quarkus - Building a Native Executable</a> guide discusses how to build and test a native executable, and also how to build a native executable inside a docker container.</p>
  
  <p>I've followed this guide to set up a common native executable build using Docker, that we are using on our CI server and also to build it locally regardless of host operating system.</p>
  
  <p>However, the produced native executable must be run on the architecture used by the builder docker image, but the Maven and Gradle test tasks try to execute the produced image directly. For example, the docker build produces a Linux native-image, but we want to run the tests from OSX and Windows systems too.</p>
  
  <p>How can I tell Quarkus to run the native tests against the built docker container, instead of the raw binary?</p>