title: Docker - Name is already in use by container
body: <p>Running the <code>docker</code> registry with below command always throws an error:</p>
  <pre><code>dev:tmp me$ docker run \
       -d --name registry-v1 \
       -e SETTINGS_FLAVOR=local \
       -e STORAGE_PATH=/registry \
       -e SEARCH_BACKEND=sqlalchemy \
       -e LOGLEVEL=DEBUG \
       -p 5000:5000 \
       registry:0.9.1
  Error response from daemon: Conflict. The name &quot;registry-v1&quot; is already in use by container f9e5798a82e0. You have to delete (or rename) that container to be able to reuse that name.
  </code></pre>
  <p><strong>How can I prevent this error ?</strong></p>