how to run docker commands through python code example
Example 1: how to run linux command in python
import os
cmd = 'your command here'
os.system(cmd)
Example 2: how to run a .exe through python
import os
os.startfile("C:\Documents and Settings\flow_model\flow.exe")
Example 3: python run a system command
import os
cmd = "git --version"
returned_value = os.system(cmd) # returns the exit code in unix