Answer the question
In order to leave comments, you need to log in
Is there a way to return the contents of a global environment variable when accessing a file?
The task is this, there is a file system in a Docker container (Alpine) with the --read-only mode
There is the contents of the certificate in the environment variable
The request (python) library requires specifying the path to the file with the certificate, I can’t write to the file because the FS is in read-only mode .
The question is how to create a file or a link in the FS, until the container is launched, when accessed, the contents of the global environment variable are displayed.
Thank you!
Answer the question
In order to leave comments, you need to log in
https://docs.docker.com/storage/tmpfs/
Mount tmpfs and store variable content to file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question