added function to check if in docker container