Added Docker detection & conditional on THP disable since you cannot do that in a Docker container.