2016-09-29 21:21:06 +02:00
---
description: Explains how to use the OpenStack swift storage driver
2018-02-24 00:40:51 +01:00
keywords: registry, service, driver, images, storage, swift
2016-11-04 23:38:40 +01:00
title: OpenStack Swift storage driver
2016-09-29 21:21:06 +02:00
---
2016-09-28 23:46:28 +02:00
2016-11-04 23:38:40 +01:00
An implementation of the `storagedriver.StorageDriver` interface that uses
[OpenStack Swift ](http://docs.openstack.org/developer/swift/ ) for object
storage.
2016-09-28 23:46:28 +02:00
## Parameters
< table >
< tr >
< th > Parameter< / th >
< th > Required< / th >
< th > Description< / th >
< / tr >
< tr >
< td >
< code > authurl< / code >
< / td >
< td >
yes
< / td >
< td >
URL for obtaining an auth token. https://storage.myprovider.com/v2.0 or https://storage.myprovider.com/v3/auth
< / td >
< / tr >
< tr >
< td >
< code > username< / code >
< / td >
< td >
yes
< / td >
< td >
Your Openstack user name.
< / td >
< / tr >
< tr >
< td >
< code > password< / code >
< / td >
< td >
yes
< / td >
< td >
Your Openstack password.
< / td >
< / tr >
< tr >
< td >
< code > region< / code >
< / td >
< td >
no
< / td >
< td >
The Openstack region in which your container exists.
< / td >
< / tr >
< tr >
< td >
< code > container< / code >
< / td >
< td >
yes
< / td >
< td >
The name of your Swift container where you wish to store the registry's data. The driver creates the named container during its initialization.
< / td >
< / tr >
< tr >
< td >
< code > tenant< / code >
< / td >
< td >
no
< / td >
< td >
Your Openstack tenant name. You can either use < code > tenant< / code > or < code > tenantid< / code > .
< / td >
< / tr >
< tr >
< td >
< code > tenantid< / code >
< / td >
< td >
no
< / td >
< td >
2018-02-24 00:40:51 +01:00
Your Openstack tenant ID. You can either use < code > tenant< / code > or < code > tenantid< / code > .
2016-09-28 23:46:28 +02:00
< / td >
< / tr >
< tr >
< td >
< code > domain< / code >
< / td >
< td >
no
< / td >
< td >
Your Openstack domain name for Identity v3 API. You can either use < code > domain< / code > or < code > domainid< / code > .
< / td >
< / tr >
< tr >
< td >
< code > domainid< / code >
< / td >
< td >
no
< / td >
< td >
2018-02-24 00:40:51 +01:00
Your Openstack domain ID for Identity v3 API. You can either use < code > domain< / code > or < code > domainid< / code > .
2016-09-28 23:46:28 +02:00
< / td >
< / tr >
< tr >
< td >
< code > trustid< / code >
< / td >
< td >
no
< / td >
< td >
2018-02-24 00:40:51 +01:00
Your Openstack trust ID for Identity v3 API.
2016-09-28 23:46:28 +02:00
< / td >
< / tr >
< tr >
< td >
< code > insecureskipverify< / code >
< / td >
< td >
no
< / td >
< td >
2018-02-24 00:40:51 +01:00
< code > true< / code > to skip TLS verification, < code > false< / code > by default.
2016-09-28 23:46:28 +02:00
< / td >
< / tr >
< tr >
< td >
< code > chunksize< / code >
< / td >
< td >
no
< / td >
< td >
Size of the data segments for the Swift Dynamic Large Objects. This value should be a number (defaults to 5M).
< / td >
< / tr >
< tr >
< td >
< code > prefix< / code >
< / td >
< td >
no
< / td >
< td >
2018-01-26 02:37:23 +01:00
This is a prefix that is applied to all Swift keys to allow you to segment data in your container if necessary. Defaults to the empty string which is the container's root.
2016-09-28 23:46:28 +02:00
< / td >
< / tr >
< tr >
< td >
< code > secretkey< / code >
< / td >
< td >
no
< / td >
< td >
The secret key used to generate temporary URLs.
< / td >
< / tr >
< tr >
< td >
< code > accesskey< / code >
< / td >
< td >
no
< / td >
< td >
2018-02-24 00:40:51 +01:00
The access key to generate temporary URLs. It is used by HP Cloud Object Storage in addition to the < code > secretkey< / code > parameter.
2016-09-28 23:46:28 +02:00
< / td >
< / tr >
< tr >
< td >
< code > authversion< / code >
< / td >
< td >
no
< / td >
< td >
2018-02-24 00:40:51 +01:00
Specify the OpenStack Auth's version, for example < code > 3< / code > . By default the driver autodetects the auth's version from the AuthURL.
2016-09-28 23:46:28 +02:00
< / td >
< / tr >
< tr >
< td >
< code > endpointtype< / code >
< / td >
< td >
no
< / td >
< td >
2018-02-24 00:40:51 +01:00
The endpoint type used when connecting to swift. Possible values are < code > public< / code > , < code > internal< / code > , and < code > admin< / code > . Default is < code > public< / code > .
2016-09-28 23:46:28 +02:00
< / td >
< / tr >
< / table >
2016-11-04 23:38:40 +01:00
The features supported by the Swift server are queried by requesting the `/info`
URL on the server. In case the administrator disabled that feature, the
configuration file can specify the following optional parameters :
2016-09-28 23:46:28 +02:00
< table >
< tr >
< td >
< code > tempurlcontainerkey< / code >
< / td >
< td >
< p >
Specify whether to use container secret key to generate temporary URL when set to true, or the account secret key otherwise.< / p >
< / td >
< / tr >
< tr >
< td >
< code > tempurlmethods< / code >
< / td >
< td >
< p >
Array of HTTP methods that are supported by the TempURL middleware of the Swift server. Example:< / p >
< code >
- tempurlmethods:
- GET
- PUT
- HEAD
- POST
- DELETE
< / code >
< / td >
< / tr >
2018-02-24 00:40:51 +01:00
< / table >