2022-12-14 15:45:53 -06:00
|
|
|
from subprocess import getoutput
|
|
|
|
|
|
|
|
# Goals: Loop: Select container (or exit), then menu to do stuff to container (start, stop, rm, list info, go back to main menu)
|
|
|
|
|
|
|
|
|
2022-12-14 22:23:07 -06:00
|
|
|
if '\n' not in getoutput('docker ps'):
|
|
|
|
print('No containers running')
|
|
|
|
exit()
|
2022-12-15 09:20:24 -06:00
|
|
|
ps()
|