D dazza76 Renowned Member May 25, 2010 44 0 71 Jan 12, 2016 #1 Hello I am looking for a solution to get the current node id from inside a lxc container , from openvz is can be done by using `awk '{print $1}' /proc/vz/veinfo` Cheers D
Hello I am looking for a solution to get the current node id from inside a lxc container , from openvz is can be done by using `awk '{print $1}' /proc/vz/veinfo` Cheers D
W windinternet Member Oct 8, 2015 159 14 18 Jan 12, 2016 #2 You could parse it from: Code: cat /proc/1/cgroup
D dazza76 Renowned Member May 25, 2010 44 0 71 Jan 14, 2016 #3 thanks that works awk 'END{split($0,a,"/"); print a[2]}' /proc/1/cgroup