title: Running Gitlab Runner in Azure Container Instances (ACI)
body: <p>I would like to run Gitlab-Runner in Azure Container Instances (ACI).</p>
  <p>For this I have the docker container <code>gitlab/gitlab-runner</code> running in the Azure ACI.</p>
  <p>With the following command I register this runner for my Gitlab server.</p>
  <pre class="lang-sh prettyprint-override"><code>gitlab-runner register \
    --non-interactive \
    --run-untagged=true \
    --locked=false \
    --executor &quot;docker&quot; \
    --docker-image docker:latest  \
    --url &quot;https://gitlab.com/&quot; \
    --registration-token &quot;MyTokenYYYYYYYY&quot; \
    --description &quot;my-own-runner&quot; \
    --tag-list &quot;frontend, runner&quot; \
    --docker-volumes /var/run/docker.sock:/var/run/docker.sock
  </code></pre>
  <p>The new runner is also recognized under gitlab. However, when I run a job, I get the following error.</p>
  <pre class="lang-sh prettyprint-override"><code>Preparing the &quot;docker&quot; executor
  ERROR: Failed to remove network for build
  ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:960:0s)
  </code></pre>
  <p>If I run the Runner with the identical configuration locally on my notebook everything works. How do I get it to work in the Azure ACI?</p>
  <p>How can I mount the docker sock in the Azure ACI when registering it?</p>
  <p>Many thanks in advance for your help.</p>