will it blend better?
This commit is contained in:
2
main.py
2
main.py
@@ -159,7 +159,7 @@ def backup_service(servicename: str, servicesdict: dict, composefilepath: str) -
|
||||
return True
|
||||
|
||||
dockerclient = docker.from_env()
|
||||
containersid = os.popen(f"docker-compose --file {composefilepath} ps --quiet {servicename}").readlines()
|
||||
containersid = os.popen(f"docker-compose --file {composefilepath} ps --quiet {servicename}").read().splitlines()
|
||||
containerrunning = []
|
||||
for containerid in containersid:
|
||||
print(containerid)
|
||||
|
||||
Reference in New Issue
Block a user