bug: Volume Mount Creates Directory Instead of File for Init Hook Script #12618
Labels
area: docker
Use Docker with LocalStack
status: backlog
Triaged but not yet being worked on
type: bug
Bug report
Is there an existing issue for this?
Current Behavior
When attempting to mount a shell script (init-aws.sh) as a volume to
/etc/localstack/init/ready.d/init-aws.sh
within the LocalStack container (as per the official documentation), Docker creates a directory named init-aws.sh instead of a file.Expected Behavior
The init-aws.sh script should be successfully mounted into the LocalStack container and executed during startup. This should result in the creation of an S3 bucket and a DynamoDB table as defined in the script.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
init-aws.sh
filedocker-compose.yml
docker-compose up
/etc/localstack/init/ready.d
inside the running LocalStack container (e.g., usingdocker exec -it localstack-main ls -l /etc/localstack/init/ready.d
). You will observe that init-aws.sh is a directory, not a file.Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: