codefuse-chatbot/tests/docker_test.py

11 lines
192 B
Python
Raw Normal View History

2023-09-28 10:58:58 +08:00
import time
import docker
st = time.time()
client = docker.from_env()
print(time.time()-st)
st = time.time()
client.containers.run("ubuntu:latest", "echo hello world")
print(time.time()-st)