From 58086fc63630c6bad67ed715eeb47fd10124d7b8 Mon Sep 17 00:00:00 2001 From: Rob Best Date: Fri, 11 May 2018 17:31:02 +0100 Subject: [PATCH] Improve docker instructions in the README --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e28430e..4691b1d 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,16 @@ Remember, if you want to load credentials from `~/.aws/config` then you need to export AWS_SDK_LOAD_CONFIG=true -## Docker +### Docker docker pull ribbybibby/s3-exporter - docker run -p 9340:9340 s3-exporter:latest + +You will need to supply AWS credentials to the container, as mentioned in the previous section, either by setting the appropriate environment variables with `-e`, or by mounting your `~/.aws/` directory with `-v`. + + # Environment variables + docker run -p 9340:9340 -e AWS_ACCESS_KEY_ID= -e AWS_SECRET_ACCESS_KEY= -e AWS_REGION= s3-exporter:latest + # Mounted volume + docker run -p 9340:9340 -e AWS_SDK_LOAD_CONFIG=true -e HOME=/ -v $HOME/.aws:/.aws s3-exporter:latest + ## Flags ./s3_exporter --help