[ https://issues.apache.org/jira/browse/IMPALA-14362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Fehr updated IMPALA-14362: -------------------------------- Description: The [bootstrap_system.sh script|https://github.com/apache/impala/blob/669d74f467193b575ec203ce45c5b3c02141a257/bin/bootstrap_system.sh#L131-L134] correctly detects if running in docker when using cgroups v1. However, when using cgroups v2, the detection method no longer works. The contents of the /proc/1/cgroups file is "0::/". See [this discussion|https://forums.docker.com/t/detect-you-are-running-in-a-docker-container-buildx/139673] for alternate ways to detect if running in a container. This issue was discovered when running the image "rockylinux:8.5" on a Macbook with DOCKER_DEFAULT_PLATFORM=linux/arm64. was: The [bootstrap_system.sh script|https://github.com/apache/impala/blob/669d74f467193b575ec203ce45c5b3c02141a257/bin/bootstrap_system.sh#L131-L134] correctly detects if running in docker when using cgroups v1. However, when using cgroups v2, the detection method no longer works. The contents of the /proc/1/cgroups file is "0::/". See [this discussion|https://forums.docker.com/t/detect-you-are-running-in-a-docker-container-buildx/139673] for alternate ways to detect if running in a container. This issue was discovered when running the image "rockylinux:8.5" in privileged mode on a Macbook with DOCKER_DEFAULT_PLATFORM=linux/arm64. > System Bootstrap Script Does Not Reliably Detect If In Docker > ------------------------------------------------------------- > > Key: IMPALA-14362 > URL: https://issues.apache.org/jira/browse/IMPALA-14362 > Project: IMPALA > Issue Type: Bug > Reporter: Jason Fehr > Assignee: Jason Fehr > Priority: Minor > > The [bootstrap_system.sh > script|https://github.com/apache/impala/blob/669d74f467193b575ec203ce45c5b3c02141a257/bin/bootstrap_system.sh#L131-L134] > correctly detects if running in docker when using cgroups v1. However, when > using cgroups v2, the detection method no longer works. The contents of the > /proc/1/cgroups file is "0::/". > See [this > discussion|https://forums.docker.com/t/detect-you-are-running-in-a-docker-container-buildx/139673] > for alternate ways to detect if running in a container. > This issue was discovered when running the image "rockylinux:8.5" on a > Macbook with DOCKER_DEFAULT_PLATFORM=linux/arm64. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org