fchange subprocess.Popen to .run to fix docker attach issues.

This commit is contained in:
jowj 2018-05-01 21:10:19 -05:00
parent 0d2fce19fa
commit 8531c460af

View File

@ -1,8 +1,13 @@
import subprocess
def dockerrun():
args = ['docker', 'run', '-it','colove:latest']
subprocess.Popen(args)
args = [
'docker', 'run',
'--rm',
'--interactive',
'--tty',
'colove:latest']
subprocess.run(args)
if __name__ == '__main__':
dockerrun()