Fix for Docker compatibility

Detects DOCKER env variable