Skip to content

Instantly share code, notes, and snippets.

@paulczar
Created December 25, 2015 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulczar/e145d505767576cf489b to your computer and use it in GitHub Desktop.
Save paulczar/e145d505767576cf489b to your computer and use it in GitHub Desktop.
running local registry backed by cloud files on carina
$ for i in 1 2 3; do
  docker run -d \
      --env constraint:node==bf76bea4-47ef-43ac-a7ae-67a6e6db15bd-n$i \
      -p 127.0.0.1:5000:5000 \
      --name registry-$i \
      -e REGISTRY_STORAGE=swift \
      -e REGISTRY_STORAGE_SWIFT_USERNAME=notreallyme \
      -e REGISTRY_STORAGE_SWIFT_PASSWORD=reallyismypasswordtho \
      -e REGISTRY_STORAGE_SWIFT_AUTHURL=https://identity.api.rackspacecloud.com/v2.0/ \
      -e REGISTRY_STORAGE_SWIFT_INSECURESKIPVERIFY=true \
      -e REGISTRY_STORAGE_SWIFT_REGION=DFW \
      -e REGISTRY_STORAGE_SWIFT_CONTAINER=docker \
      -e REGISTRY_STORAGE_SWIFT_ROOTDIRECTORY=/registry \
      registry:2
  done     
$ docker tag cirros 127.0.0.1:5000/cirros
$ docker push 127.0.0.1:5000/cirros 
The push refers to a repository [127.0.0.1:5000/cirros] (len: 1)
21bb29681c97: Pushed 
a31f834508b9: Pushed 
a0893f36f1a4: Pushing  2.56 kB


a0893f36f1a4: Pushed 
bb4dc2a6cbdb: Pushed 
latest: digest: sha256:932ad06c1306bbfcf882f86c886b8ca6a0a51d1f02acd77ffe43b455bdf100f2 size: 7257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment