Issue
My environment variable is not shown env command.
How could I get all environment variables of the container?
Solution
If your default CMD (COMMAND) setting set in the Docker image a "/entrypoint.sh", change to the following CMD and restart it. all environment variables are output to /etc/arukas/env file of your container.
Before | /entrypoint.sh |
---|---|
After | /bin/sh -c 'mkdir /etc/arukas && env > /etc/arukas/env && /entrypoint.sh' |
Comments
0 comments
Please sign in to leave a comment.