fix readme docs specify /data

code doesn't force the `/data` prefix as a default so need to provide it in the `command` when running it
This commit is contained in:
Chris Nesbitt-Smith 2018-02-01 00:15:43 +00:00 committed by GitHub
parent 439fa8f4b2
commit d3f3243125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ For the simplest usage, you can just start the data container:
```bash ```bash
docker run -d --name my-data-container \ docker run -d --name my-data-container \
elementar/s3-volume s3://mybucket/someprefix elementar/s3-volume /data s3://mybucket/someprefix
``` ```
This will download the data from the S3 location you specify into the This will download the data from the S3 location you specify into the
@ -31,7 +31,7 @@ the suffix):
```bash ```bash
docker run -d --name my-data-container -e BACKUP_INTERVAL=2m \ docker run -d --name my-data-container -e BACKUP_INTERVAL=2m \
elementar/s3-volume s3://mybucket/someprefix elementar/s3-volume /data s3://mybucket/someprefix
``` ```
### Configuring credentials ### Configuring credentials
@ -42,7 +42,7 @@ you can supply credential information using environment variables:
```bash ```bash
docker run -d --name my-data-container \ docker run -d --name my-data-container \
-e AWS_ACCESS_KEY_ID=... -e AWS_SECRET_ACCESS_KEY=... \ -e AWS_ACCESS_KEY_ID=... -e AWS_SECRET_ACCESS_KEY=... \
elementar/s3-volume s3://mybucket/someprefix elementar/s3-volume /data s3://mybucket/someprefix
``` ```
Any environment variable available to the `aws-cli` command can be used. see Any environment variable available to the `aws-cli` command can be used. see
@ -66,7 +66,7 @@ sync again, you can run the container again with the `--force-restore` option:
```bash ```bash
docker run -d --name my-data-container \ docker run -d --name my-data-container \
elementar/s3-volume --force-restore s3://mybucket/someprefix elementar/s3-volume --force-restore /data s3://mybucket/someprefix
``` ```
### Using Compose and named volumes ### Using Compose and named volumes
@ -85,7 +85,7 @@ volumes:
services: services:
s3vol: s3vol:
image: elementar/s3-volume image: elementar/s3-volume
command: s3://mybucket/someprefix command: /data s3://mybucket/someprefix
volumes: volumes:
- s3data:/data - s3data:/data
db: db: