Skip to content

Instantly share code, notes, and snippets.

@chilicat
Last active January 3, 2016 16:18
Show Gist options
  • Save chilicat/8488099 to your computer and use it in GitHub Desktop.
Save chilicat/8488099 to your computer and use it in GitHub Desktop.
Docker registry for openstack-swift mode
docker run -i -t -p 5042:5000 \
-e SETTINGS_FLAVOR=openstack-swift \
-e OS_USERNAME=${OS_USERNAME} \
-e OS_PASSWORD=${OS_PASSWORD} \
-e OS_TENANT_NAME=${OS_TENANT_NAME} \
-e OS_GLANCE_URL=${OS_GLANCE_URL} \
-e OS_AUTH_URL=${OS_AUTH_URL} \
-e OS_REGION_NAME=${OS_REGION_NAME} \
-e SWIFT_CONTAINER=${SWIFT_CONTAINER} \
docker-registry
myIp=192.168.2.1
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=password
export OS_AUTH_URL=http://${myIp}:35357/v2.0/
export OS_REGION_NAME=RegionOne
export SWIFT_CONTAINER=docker-registry
export OS_GLANCE_URL=http://${myIp}:9292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment