Jason Fehr created IMPALA-14362:
-----------------------------------

             Summary: 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


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 message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to