I am creating a python script to run a docker image. I am using the command:
client.containers.run("-p 9000:9000 -p 8000:8000 -t -i bamos/openface /bin/bash", "echo hello world")
Python returns an error message:
ConnectionError: ('Connection aborted.', error(13, 'Permission denied'))
this is an understood error since the command requires a sudo prefix then it prompts a password.
My question here is how to run sudo-based commands in python and how to insert the required password within the code.