Commands: Go to the project folder
-
Build docker:
docker build -t <container_name> .
-
Run docker:
docker run --rm -v <Host>:<mount_path_in_docker> <container_name> <up/dwn> <local_dir> <file> <s3_dir> <BUCKET> <ACCESS_KEY> <SEC_KEY> <REGION>
Download text.txt
file from s3://bucket/test_dir/
and save it to /home/pratik/test.t
docker run --rm -v /Users/pratik:/home/pratik mover dwn /home/pratik test.txt bucket test_dir <ACC_KEY> <SEC_KEY> <REGION>