Check if the process is running inside a Docker container
Demo on Repl.it
$ pip install isdocker
from isdocker import isDocker
print('Running inside a Docker container');
print('Running outside the Docker container');
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.