Fix getting docker container list

This commit is contained in:
Taylor Helsper 2022-04-13 21:30:17 -05:00
parent 8edb8ef8bb
commit 34a01ceed5

View File

@ -950,7 +950,7 @@ def get_docker_running_containers():
# TODO: switch to subprocess after switch to python3 for web ui (timeout doesn't work w/ subprocess32, causes issues)
try:
text = subprocess32.check_output("docker ps --format '{{.Names}}'", shell=True, timeout=3).decode("utf8")
text = subprocess.check_output("docker ps --format '{{.Names}}'", shell=True, timeout=3).decode("utf8")
containers = text.splitlines()
except Exception as e:
containers = [str(e)]