By sandymcp
Using the instructions here https://docs.gitlab.com/ee/administration/container_registry.html#container-registry-storage-driver, I was trying to put my docker registry in s3 storage. The registry tries to go to AWS by default, eventually I figured out what to do, so in case there’re some other lost souls out there trying to do the same thing and having no luck, here’s the solution
I put the ruby snippet in my
registry['storage'] = {
's3' => {
'accesskey' => 's3-access-key',
'secretkey' => 's3-secret-key-for-access-key',
'bucket' => 'docker-registry',
'region' => 'ams3',
}
}```
Didn't work
2018-10-09_17:13:03.86623 /var/cache/omnibus/src/registry/src/github.com/docker/distribution/cmd/registry/main.go:24 +0x2d 2018-10-09_17:13:04.89556 panic: Invalid region provided: ams3
How do I convince it to go to DO? I tried to use the setting from the DO backup documentation
I found some additional information here https://www.digitalocean.com/community/questions/docker-registry-with-spaces-as-storage, so I tried
‘regionendpoint’ => ‘https://ams3.digitaloceanspaces.com’
Now I get a 503
Another bit of research brings me here https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/2429. Full snippet now looks like
registry[‘health_storagedriver_enabled’] = false registry[‘storage’] = { ‘s3’ => { ‘accesskey’ => ‘s3-access-key’, ‘secretkey’ => ‘s3-secret-key-for-access-key’, ‘bucket’ => ‘docker-registry’, ‘region’ => ‘ams3’, ‘regionendpoint’ => ‘https://ams3.digitaloceanspaces.com’ } }
Bingo!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.