@Fuxy22 It checks to see if Docker exists. If it doesn't then the script halts. @bashy pointed to an issue that explains that this method stops working with newer versions of Docker. This should work with the new version:
[[ ! -e /.dockerinit ]] && [[ ! -e /.dockerenv ]] && exit 0
However, I have yet to test it.