title: Using Docker and Cypress in Same Docker Image
body: <p>Fair warning: I'm new to all of this, so there there might be some mistakes in my thinking process.</p>
  <p>I want to system test an application we are developing, and we ship this application via Docker, so that's what I want to test.</p>
  <p>For GitLab CI, this means creating a Docker image which has Docker in Docker and Cypress, since that is what I'd like to use.</p>
  <p>So just from checking the <a href="https://docs.docker.com/engine/install/" rel="nofollow noreferrer">Docker docs</a> I can see that Docker can be installed on a multitude of Linux distros, but not on Alpine. The <a href="https://hub.docker.com/_/docker" rel="nofollow noreferrer">official image</a> however is Alpine.</p>
  <p>The <a href="https://docs.cypress.io/guides/getting-started/installing-cypress" rel="nofollow noreferrer">Cypress docs</a> however show that Cypress can not be installed to Alpine. Only the package managers &quot;apt-get&quot; and &quot;yum&quot; are supported, which is Ubuntu and Fedora, respectively.</p>
  <p>So as far as I can tell, it's not possible to have both of these at once? Which would be absolutely baffling (but so is the package manager chaos I just learned about).</p>
  <p>What I tried:</p>
  <ul>
  <li>used the <a href="https://hub.docker.com/_/docker" rel="nofollow noreferrer">Docker image</a> as a base and tried to install Cypress (does not work because there is no installation manual and the packages you need to install via apt-get don't exist for apk)</li>
  <li>used the <a href="https://hub.docker.com/r/cypress/included" rel="nofollow noreferrer">Cypress image</a> as a base and tried to install Docker (does not work because the Cypress images don't work)</li>
  <li>used another image and tried to install both (does not work because installing Docker inside the Docker container does not work, that's why they have the image provided)</li>
  <li>used DinD with another distro (<a href="https://hub.docker.com/r/cruizba/ubuntu-dind" rel="nofollow noreferrer">cruizba/ubuntu-dind</a>, fails with &quot; dockerd is not running after max time&quot;)</li>
  </ul>
  <p>So... what am I missing? Is there any way to get to the point where I can use both Cypress and DinD in the same image?</p>