title: "exec format error" when running containers build with Apple M1 Chip (ARM based systems)
body: <p>Expected behavior: I can run a container I've built using an Apple M1 chip.</p>
  <p>Observed behavior:</p>
  <p>Assuming you have a Google Cloud Run account and can push Docker images to Google Container Registry. I'm using <a href="https://github.com/seenickcode/trivial-go-api" rel="noreferrer">https://github.com/seenickcode/trivial-go-api</a> for this example.</p>
  <ol>
  <li>`git clone git@github.com:seenickcode/trivial-go-api.git'</li>
  <li><code>cd trivial-go-api</code></li>
  <li><code>docker build -t gcr.io/&lt;YOUR GCR PROJECT ID&gt;/example .</code></li>
  <li><code>docker push -t gcr.io/&lt;YOUR GCR PROJECT ID&gt;/example</code></li>
  <li>Go to <code>console.cloud.google.com</code>, Google Cloud Run &gt; Create new service &gt; select your pushed Docker image with all default options &gt; Run</li>
  <li>Error shown:</li>
  </ol>
  <pre><code>Cloud Run error: Container failed to start. 
  Failed to start and then listen on the port defined by the PORT environment variable. 
  Logs for this revision might contain more information.
  </code></pre>
  <p>Logs:</p>
  <pre><code>2021-04-02 09:35:40.045 EDT
  Cloud Run ReplaceService example hello@redactedforso.com {@type: type.googleapis.com/google.cloud.audit.AuditLog, authenticationInfo: {…}, authorizationInfo: […], methodName: google.cloud.run.v1.Services.ReplaceService, request: {…}, requestMetadata: {…}, resourceLocation: {…}, resourceName: namespaces/myprojectforso-282419/services/example, response: {…}, servi…
  Error
  2021-04-02 09:35:49.034 EDT
  terminated: Application failed to start: Failed to create init process: failed to load /app/main: exec format error
  Warning
  2021-04-02 09:35:49.174 EDT
  Application exec likely failed
  Notice
  2021-04-02 09:57:43.102 EDT
  Cloud Run ReplaceService example hello@redactedforso.com {@type: type.googleapis.com/google.cloud.audit.AuditLog, authenticationInfo: {…}, authorizationInfo: […], methodName: google.cloud.run.v1.Services.ReplaceService, request: {…}, requestMetadata: {…}, resourceLocation: {…}, resourceName: namespaces/myprojectforso-282419/services/example, response: {…}, servi…
  Error
  2021-04-02 09:57:50.657 EDT
  terminated: Application failed to start: Failed to create init process: failed to load /app/main: exec format error
  </code></pre>
  <p>System details on where I'm building my image:</p>
  <ul>
  <li>OS: macOS 11.2.3</li>
  <li>Chip: Apple M1</li>
  <li>Docker version: Docker Desktop for macOS v3.3.0 (62345)</li>
  </ul>
  <p>Important Notes:</p>
  <ul>
  <li>This all works completely fine for me when I use another architecture, i.e. via Google Container Build or my home Windows (WSL) desktop.</li>
  <li>This also doesn't work with other codebases when built using the Apple M1 Chip, such as another project I have written in Rust as well as Dart. Doesn't seem language related.</li>
  <li>I've been using Google Cloud Run for years, this issue cropped up when using my new laptop with Apple M1 Chip.</li>
  </ul>