calling a docker shell command from python code example
Example 1: input command in python shell
x = input("Input Your Name")
#lets say I input Bob
print(x)
#It should output Bob
Example 2: How to run bash script in python
import subprocess
print "start"
subprocess.call("sleep.sh")
print "end"