mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 22:54:01 +02:00
Detect when running in Docker (#1204)
This commit is contained in:
parent
1c16554b41
commit
d8b318b59a
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ if [[ -x $(command -v systemd-detect-virt) ]]; then
|
|||
if [[ ${DETECT_VIRT} != "none" ]]; then
|
||||
VIRTUALIZED=" (Virtualized: ${DETECT_VIRT})"
|
||||
fi
|
||||
elif [[ -f /.dockerenv ]]; then
|
||||
VIRTUALIZED=" (Virtualized: docker)"
|
||||
fi
|
||||
|
||||
echo "Algo running on: ${OS}${VIRTUALIZED}"
|
||||
|
|
Loading…
Add table
Reference in a new issue