title: Conflict. The container name "/gitlab-runner" is already in use by container
body: <p>I'm following this <a href="https://docs.gitlab.com/runner/install/docker.html" rel="nofollow noreferrer">guide</a> to install docker for my GitLab server running on Ubuntu 16.4.</p>
  
  <p>When I execute the following command:</p>
  
  <pre><code>docker run -d --name gitlab-runner --restart always \
    -v /srv/gitlab-runner/config:/etc/gitlab-runner \
    -v /var/run/docker.sock:/var/run/docker.sock \
    gitlab/gitlab-runner:latest
  </code></pre>
  
  <p>So far so good. However, when I run the next command to register the runner from this <a href="https://docs.gitlab.com/runner/register/index.html#docker" rel="nofollow noreferrer">guide</a>:</p>
  
  <pre><code>docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner --name gitlab-runner gitlab/gitlab-runner register
  </code></pre>
  
  <p>I keep getting the message:</p>
  
  <blockquote>
    <p>docker: Error response from daemon: Conflict. The container name "/gitlab-runner" is already in use by container "b055ded012f9d0ed085fe84756604464afbb11871b432a21300064333e34cb1d". You have to remove (or rename) that container to be able to reuse that name.</p>
  </blockquote>
  
  <p>However, when I run <code>docker container list</code> to see the list of containers, it's empty.</p>
  
  <p>Anyone know how I can fix this error?</p>