github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/container/lxc/lxcutils/utils.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package lxcutils 5 6 var initProcessCgroupFile = "/proc/1/cgroup" 7 8 // RunningInsideLXC reports whether or not we are running inside an 9 // LXC container. 10 func RunningInsideLXC() (bool, error) { 11 return runningInsideLXC() 12 }