docker-library/docs

set aws credentails folder for php apache container

tkumark opened this issue · 2 comments

My php application runs in a docker. During development I run the following command where my code is attached as a volume to a folder in the container.

docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:7.2-apache

Now my PHP application also uses AWS SDK to read from s3 bucket. Now I would like to attach my .aws credentails folder to that I can test my functionality.

What folder should I map the aws credential folder to in the container.

In the future, these sorts of questions/requests would be more appropriately posted to a dedicated support forum, such as the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow.