Skip to content

Commit

Permalink
Merge pull request #1004 from oppodeldoc/master
Browse files Browse the repository at this point in the history
Add DOBS_CONVERTUNDERSCORES env var to plugin config
  • Loading branch information
akutz committed Sep 7, 2017
2 parents 0bc6821 + 213516f commit 4690b45
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .docker/plugins/dobs/config.json
Expand Up @@ -35,6 +35,14 @@
],
"Value": "false"
},
{
"Description": "",
"Name": "DOBS_CONVERTUNDERSCORES",
"Settable": [
"value"
],
"Value": "false"
},
{
"Description": "",
"Name": "DOBS_REGION",
Expand Down
6 changes: 6 additions & 0 deletions .docs/user-guide/docker-plugins.md
Expand Up @@ -305,6 +305,11 @@ $ docker plugin install rexray/dobs \
The DOBS plug-in requires that your DigitalOcean droplet is running in a region that
supports block storage.

**NOTE:** DigitalOcean volumes cannot be created if their name contains an underscore.
Docker will automatically append prefixes with underscores to your volume names when
they are created as part of a compose file, so if you're creating volumes with this plugin
using compose (or stack deploy), be sure to set `DOBS_CONVERTUNDERSCORES` to `true`.

#### Privileges
The DOBS plug-in requires the following privileges:

Expand All @@ -321,6 +326,7 @@ plug-in:

Environment Variable | Description | Default | Required
---------------------|-------------|---------|---------
`DOBS_CONVERTUNDERSCORES` | Set to `true` if the plugin will create volumes at DigitalOcean via e.g. a `docker-compose.yml` file | `false` |
`DOBS_REGION` | The region where volumes should be created | | ✓
`DOBS_STATUSINITIALDELAY` | Time duration used to wait when polling volume status | `100ms` |
`DOBS_STATUSMAXATTEMPTS` | Number of times the status of a volume will be queried before giving up | `10` |
Expand Down

0 comments on commit 4690b45

Please sign in to comment.