fix(avatar): 杜绝发布后继续运行旧镜像 #24

Merged
stefanfeng merged 4 commits from codex/avatar-deploy-integrity-20260909 into main 2026-09-11 11:55:14 +08:00
Showing only changes of commit 9ce46cd883 - Show all commits
@@ -74,7 +74,9 @@ def main():
def inspect_container(name, errors):
try:
output = subprocess.check_output(["docker", "inspect", name], text=True)
output = subprocess.check_output(
["docker", "inspect", name], universal_newlines=True
)
return json.loads(output)[0]
except Exception as exc:
errors.append(f"cannot inspect container {name!r}: {exc}")