Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

bash check if inside lxc

cat /proc/1/environ | sed -r 's/container/
container/g; s/^
//g' | grep -a 'container=lxc'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #check #lxc
ADD COMMENT
Topic
Name
7+1 =