Created
December 10, 2022 22:33
-
-
Save georgeOsdDev/706886b4818071d8980ef7141aa2ec8a to your computer and use it in GitHub Desktop.
App Service on Linux: Get container id from inside container
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
CONTAINER_ID=$(cat /proc/self/cgroup | grep docker | grep $WEBSITE_SITE_NAME | head -1| rev | cut -d "/" -f 1 | rev) |
Author
georgeOsdDev
commented
Dec 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment