mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-13 16:23:00 +02:00
Detect when running in Docker (#1204)
This commit is contained in:
parent
5cb7670804
commit
55a2d9df04
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