Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- docker service create --name registry \
- -e "REGISTRY_STORAGE=s3" \
- -e "REGISTRY_STORAGE_S3_REGION=[S3 REGION]" \
- -e "REGISTRY_STORAGE_S3_ACCESSKEY=[ACCESS KEY]" \
- -e "REGISTRY_STORAGE_S3_SECRETKEY=[SECRET KEY]" \
- -e "REGISTRY_STORAGE_S3_BUCKET=[BUCKET NAME]" \
- -e "REGISTRY_STORAGE_S3_ENCRYPT=true" \
- --publish 5000:5000 \
- registry:2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement