title: Docker/Cypress Container Failing Due to Qemu Error on M1 Chip
body: <p>I have a Docker image that I'd like to run locally but I believe it's failing due to an issue with Qemu, which seems to stem from attempting to run Cypress on an M1 chip:</p>
  <pre><code>REPOSITORY   TAG       IMAGE ID       CREATED       SIZE
  dna          local     097c5f291db5   2 hours ago   3.66GB
  </code></pre>
  <p>When I attempt to run the image locally using <code>docker run dna:local</code> I get the following:</p>
  <pre><code>WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
  yarn run v1.22.10
  $ concurrently &quot;yarn:start:ui&quot; &quot;yarn:start:api&quot; &quot;cypress run&quot;
  [start:api] $ cd api &amp;&amp; yarn start:dev
  [start:ui] $ cd ui &amp;&amp; yarn start
  [2] [STARTED] Task without title.
  [start:api] $ DEBUG=socket.io:* DISABLE_AD=1 USE_MEMORY_DB=true nodemon --inspect -r esm ./src/app.js
  [2] [FAILED] Cypress failed to start.
  [2] [FAILED]
  [2] [FAILED] This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies
  [2] [FAILED]
  [2] [FAILED] Please refer to the error below for more details.
  [2] [FAILED]
  [2] [FAILED] ----------
  [2] [FAILED]
  [2] [FAILED] qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
  [2] [FAILED] qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
  [2] [FAILED]
  [2] [FAILED]
  [2] [FAILED] #
  [2] [FAILED] # Fatal error in , line 0
  [2] [FAILED] # ignored
  [2] [FAILED] #
  [2] [FAILED] #
  [2] [FAILED] #
  [2] [FAILED] #FailureMessage Object: 0x4009bb9420
  [2] [FAILED] qemu: uncaught target signal 4 (Illegal instruction) - core dumped
  </code></pre>
  <p>My Dockerfile looks like this:</p>
  <pre><code>FROM cypress/browsers:node14.16.0-chrome90-ff88
  
  # Copy the project into the Docker container
  COPY . /
  
  # Install the API and UI packages
  RUN yarn workspace checkin-api install
  RUN yarn workspace checkin-ui install
  
  # Run the e2e test suite
  CMD yarn run e2e
  </code></pre>
  <p>Strangely, if I try to specify a platform for the image, Docker complains that it can't find the image locally:</p>
  <pre><code>docker run --platform linux/arm64/v8 dna:local
  </code></pre>
  <p>Gets me the following:</p>
  <pre><code>Unable to find image 'dna:local' locally
  docker: Error response from daemon: pull access denied for dna, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
  See 'docker run --help'.
  </code></pre>
  <p>I assume that the image pulled from the Cypress Docker repository dictates the architecture used as opposed to my --platform flag? If so, is it simply a case that Cypress won't run in a Docker container on my machine?</p>