import os import time while True: os.system('docker container restart hhh1') time.sleep(30)