I am trying to capture the output from a whois call made by a python script inside a docker container using subprocess.call. I have tried using Popen and check_output but they throw errors. Here is the code:
live_data = subprocess.call('whois {}'.format(domain), shell=True)