docker-composer/basic_management.py

10 lines
255 B
Python
Raw Normal View History

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)
if '\n' not in getoutput('docker ps'):
print('No containers running')
exit()
ps()