I am trying to upload a file to S3 using docker. I know how to use "aws" command, but not sure about the best way to use it within container.
# docker run --volume ~/.aws:/root/.aws -i --rm cgswong/aws:latest aws s3 cp mail.conf s3://mybucket/
I am getting an error:
The user-provided path mail.conf does not exist.
Another problem is that I use putty and I have to duplcate a new terminal session after using this command because this command does not return to normal prompt.
How do I use the docker container the same way I use aws command line tool?