Created
June 1, 2019 19:48
-
-
Save johnjreiser/4ab472326d425eef9156f36e8d0dec20 to your computer and use it in GitHub Desktop.
Store container start time inside environment variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CONTAINER_START=$( stat /proc/1/cmdline | grep Modify | awk '{print $2 " " $3}' ) | |
# run in shell through entrypoint or other cmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment