Docker Community Forums

Share and learn in the Docker community.

Trouble binding openstack swift storage to private registry


(Jparton) #1

I have a registry image running on an Ubuntu 16.04 instance. I edited the config.yml file to include swift for persistent storage but still receive errors after trying to start the registry again. The swift storage driver docs ( https://docs.docker.com/registry/storage-drivers/swift/ ) have several config options but state only authurl, username, password, and container are required. Are there more steps I need to take in order to get everything working properly?

Here is my config.yml:

version: 2
nginx:
image: "nginx:1.9"
ports:
- 443:443
links:
- registry:registry
volumes:
- /docker-registry/nginx/:/etc/nginx/conf.d
version: latest
registry:
image: registry:2
ports:
- 127.0.0.1:5000:5000
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:
- /docker-registry/data:/data
storage:
swift:
username: my_username
password: my_passsword
authurl: http://my_IP/v3/auth
container: test_container