This feature is only available in the Enterprise Edition
The enterprise edition supports global registry credentials, sourced from a yaml file on your server. You should mount the registry credentials file into your container and specify the path to the file in your configuration.
services:
drone-server:
image: drone/drone:0.7
ports:
- 80:8000
volumes:
- /var/lib/drone:/var/lib/drone/
+ - /etc/drone-registry.yml:/etc/drone-registry.yml
restart: always
environment:
+ DRONE_GLOBAL_REGISTRY=/etc/drone-registry.yml
Example registry credentials file:
- address: docker.io
username: octocat
password: correct-horse-batter-staple
- address: gcr.io
username: _json_key
password: |
{
"private_key_id": "...",
"private_key": "...",
"client_email": "...",
"client_id": "...",
"type": "..."
}
Questions?
We are always happy to help with questions you might have. Search our documentation or check out answers to common questions. You can also post questions or comments to our community forum.