Skip to content

Instantly share code, notes, and snippets.

@nlamirault
Last active August 29, 2015 14:03
Show Gist options
  • Save nlamirault/58d2810fb512dccd423e to your computer and use it in GitHub Desktop.
Save nlamirault/58d2810fb512dccd423e to your computer and use it in GitHub Desktop.
#!/bin/bash
CONTAINER_NAME="my-registry"
LOCAL_STORAGE_DIR="/mnt/registry"
docker kill $CONTAINER_NAME
docker rm $CONTAINER_NAME
docker run \
-d \
-v $LOCAL_STORAGE_DIR:/registry \
-e SETTINGS_FLAVOR=local \
-e STORAGE_PATH=/registry \
-e SEARCH_BACKEND=sqlalchemy \
-p 5000:5000 \
--name "$CONTAINER_NAME" \
registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment