Is there a Docker Registry storage driver for Object Storage?

December 4, 2017 135 views

I would like to use DigitalOcean Object Storage to store my Docker Registry Images.

1 Answer

Spaces was designed to be inter-operable with the S3 API so that you can take advantage of existing integrations. I am currently running a Docker Registry instance backed by Spaces using the S3 storage driver. The key difference to note when using it with Spaces is that you must set the regionendpoint explicitly.

Here's the storage stanza from the config.yml that I'm using:

    accesskey: MY_SPACES_KEY
    secretkey: MY_SPACES_SECRET
    region: us-east-1
    bucket: name-of-my-docker-reg-space
    encrypt: false
    keyid: mykeyid
    secure: true
    v4auth: true
    chunksize: 5242880
    rootdirectory: /

Hope that helps!

Have another answer? Share your knowledge.