Skip to content

Instantly share code, notes, and snippets.

@cicorias
Created March 5, 2019 03:04
Show Gist options
  • Save cicorias/c4fb9aef786fd8ef12ee45e63c7bd6fb to your computer and use it in GitHub Desktop.
Save cicorias/c4fb9aef786fd8ef12ee45e63c7bd6fb to your computer and use it in GitHub Desktop.
run a docker registry local and use host volume
#!/usr/bin/env bash
cd registry
docker run -d -p 5000:5000 --restart=always --name registry -v $(pwd):/var/lib/registry registry:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment