You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to upload some files from my docker container to s3 bucket which is managed by rook. But while uploading it is not able to detect exact path for the object.
Result
The user-provided path filename.txt does not exist.
But I am in the same folder where this file is present.
Also I tried to put exact path from home directory like
~/piyush/filename.txt
/piyush/filename.txt
Note: Same command with aws cli is working as expected
aws --endpoint-url https://s3.company.com --no-verify-ssl s3 cp filename.txt s3://teamfelgen/test/
The text was updated successfully, but these errors were encountered:
@pkhetan it is trying to access the file inside the docker container when it gets executed, I'm assuming that the filename.txt is in your host computer. You would need to mount a volume in docker so that it is available.
You would use: docker run --env AWS_ACCESS_KEY_ID=xyz --env AWS_SECRET_ACCESS_KEY=abc -v ~/piyush:/piyush garland/aws-cli-docker aws --endpoint-url https://s3.company.com --no-verify-ssl s3 cp /piyush/filename.txt s3://teamfelgen/test/
Notice the -v ~/piyush:/piyush, this is where we tell docker to mount the directory ~/piyush inside the docker container at /piyush. That is why, afterwards we tell the aws command to cp from /piyush/filename.txt
Hi,
I am trying to upload some files from my docker container to s3 bucket which is managed by rook. But while uploading it is not able to detect exact path for the object.
docker run --env AWS_ACCESS_KEY_ID=xyz --env AWS_SECRET_ACCESS_KEY=abc garland/aws-cli-docker aws --endpoint-url https://s3.company.com --no-verify-ssl s3 cp filename.txt s3://teamfelgen/test/
Result
The user-provided path filename.txt does not exist.
But I am in the same folder where this file is present.
Also I tried to put exact path from home directory like
~/piyush/filename.txt
/piyush/filename.txt
Note: Same command with aws cli is working as expected
aws --endpoint-url https://s3.company.com --no-verify-ssl s3 cp filename.txt s3://teamfelgen/test/
The text was updated successfully, but these errors were encountered: