bug: version 43.0 in linux cannot run as non-root #12485
Labels
area: infrastructure
Installation and startup of LocalStack and components
status: backlog
Triaged but not yet being worked on
type: bug
Bug report
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Current Behavior
See error:
Running as user: 1001040000
ERROR: The LocalStack Runtime could not be initialized: [Errno 13] Permission denied: '/root/.cache/plux'
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/opt/code/localstack/localstack-core/localstack/runtime/main.py", line 93, in
main()
--
Expected Behavior
Should start without needed to be root user
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
FROM localstack/localstack:4.3.0
ENV EAGER_SERVICE_LOADING=1
ENV SERVICES s3
ENV DEBUG=1
ENV PERSISTENCE=1
COPY setup-localstack.sh /etc/localstack/init/ready.d/
RUN chmod +x /etc/localstack/init/ready.d/setup-localstack.sh
COPY test.png /opt/code/localstack/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
====
#!/bin/bash
echo Running as user: $(whoami)
/opt/code/localstack/.venv/bin/python -m localstack.runtime.main
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: