restart_seo_tiny_docker.py 262 B

12345678910
  1. import rpyc
  2. import os
  3. conn = rpyc.classic.connect("192.168.192.45",18812)
  4. conn.execute('import os')
  5. ros = conn.modules.os
  6. ros.system('docker restart tiny1')
  7. #ros.system('docker restart 62eab82f7759')
  8. #print('after restart')
  9. #time.sleep(11)
  10. #print('after wait')