From 0ac3c44f4ae3a76c9410bb79e7148bca05024e83 Mon Sep 17 00:00:00 2001 From: askiiart <90910526+askiiart@users.noreply.github.com> Date: Thu, 15 Dec 2022 10:31:15 -0600 Subject: [PATCH] Start on actual code --- basic_management.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/basic_management.py b/basic_management.py index 49e877c..16a96d3 100644 --- a/basic_management.py +++ b/basic_management.py @@ -1,6 +1,7 @@ import docker_wrapper -import pprint # Goals: Loop: Select container (or exit), then menu to do stuff to container (start, stop, rm, list info, go back to main menu) -pprint.pprint(docker_wrapper.Docker.ps()) -pprint.pprint(docker_wrapper.Docker.containers_info()) +while True: + print('Select the container to manage:') + for container in docker_wrapper.Docker.containers(): + print(f' {container}')