MCPcopy Create free account
hub / github.com/modelscope/ms-agent / is_docker_daemon_running

Function is_docker_daemon_running

ms_agent/utils/docker_utils.py:1–12  ·  view source on GitHub ↗

Check if the Docker daemon is running.

()

Source from the content-addressed store, hash-verified

1def is_docker_daemon_running():
2 """
3 Check if the Docker daemon is running.
4 """
5 import docker
6
7 try:
8 client = docker.from_env()
9 client.ping()
10 return True
11 except Exception:
12 return False

Callers 2

__init__Method · 0.90
_ensure_auto_skillsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected