You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug Report] isaaclab.sh incorrectly detects if script is run inside docker container or not #4181
If you are submitting a bug report, please fill in the following details and use the tag [bug].
Describe the bug
isaaclab.sh incorrectly detects if script is run inside docker container or not
Steps to reproduce
Observation:
Upon running ./isaaclab.sh --install it incorrectly detects that script is being run inside docker even when it is not.
This is happening because there is a code section which checks if script is run inside docker or not ( inside isaaclab.sh )
check if running in docker
is_docker() {
[ -f /.dockerenv ] ||
grep -q docker /proc/1/cgroup ||
[[ $(cat /proc/1/comm) == "containerd-shim" ]] ||
grep -q docker /proc/mounts ||
[[ "$(hostname)" == "." ]]
}
Root cause
The heuristic grep -q docker /proc/mounts returns true on hosts with Docker installed because the host’s own mount table includes Docker-managed mount points (overlay layers and network namespaces) even when the current process is not running in a container.
The function treats any such occurrence as “inside docker” which is incorrect.
Additionally, the dotted‑hostname clause [[ "$(hostname)" == "." ]] is overly broad and can misclassify hosts with FQDNs.
For more information on this, check: https://www.markdownguide.org/extended-syntax/#fenced-code-blocks
Activity
Fixes docker check in isaaclab.sh script in systems where docker is n…
Fixes docker check in isaaclab.sh script in systems where docker is n…
Fixes docker check in isaaclab.sh script in systems where docker is n…
Fixes docker check in isaaclab.sh script in systems where docker is n…
Fixes docker check in isaaclab.sh script in systems where docker is n…
Fixes docker check in isaaclab.sh script in systems where docker is n…