Skip to content

Instantly share code, notes, and snippets.

@georgeOsdDev
Created December 10, 2022 22:33
Show Gist options
  • Save georgeOsdDev/706886b4818071d8980ef7141aa2ec8a to your computer and use it in GitHub Desktop.
Save georgeOsdDev/706886b4818071d8980ef7141aa2ec8a to your computer and use it in GitHub Desktop.
App Service on Linux: Get container id from inside container
CONTAINER_ID=$(cat /proc/self/cgroup | grep docker | grep $WEBSITE_SITE_NAME | head -1| rev | cut -d "/" -f 1 | rev)
@georgeOsdDev
Copy link
Author

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment