Is there any way to determine if a process (script) runs inside an lxc container (~ Docker runtime)? I know that some programs are able to detect whether they run inside a v
Maybe this do the trick:
if [ -z $(docker ps -q) ]; then echo "There is not process currently running" else echo "There are processes running" fi
Is that what you want? Hope it helps =)