This image provides an easy way to run the AWS CLI.
466
This image provides an easy way to run the AWS CLI.
You need to set 2 environment variables at runtime:
AWS_ACCESS_KEY_ID: your access keyAWS_SECRET_ACCESS_KEY: your tokenYou can also mount any directory to the /mnt directory inside the container to upload files.
Then, you can just run the container with the AWS S3 command you want.
# docker run -ti --tty -e AWS_ACCESS_KEY_ID=demo:demo -e AWS_SECRET_ACCESS_KEY=DEMO_PASS racciari/awscli --endpoint-url http://192.168.1.1:6007 --no-verify-ssl s3api create-bucket --bucket testbucket
# docker run -ti --tty -e AWS_ACCESS_KEY_ID=demo:demo -e AWS_SECRET_ACCESS_KEY=DEMO_PASS racciari/awscli --endpoint-url http://192.168.1.1:6007 --no-verify-ssl s3 ls
to the buckettestbucket`:# docker run -v ~/tmp:/mnt -ti --tty -e AWS_ACCESS_KEY_ID=demo:demo -e AWS_SECRET_ACCESS_KEY=DEMO_PASS racciari/awscli --endpoint-url http://192.168.1.1:6007 --no-verify-ssl s3 cp /mnt/file s3://testbucket
More information on the AWS CLI in the AWS CLI documentation.
Content type
Image
Digest
Size
29.1 MB
Last updated
almost 8 years ago
docker pull racciari/awscli