Created
July 30, 2026 04:30
-
-
Save thepatrickniyo/d42468bb06850a8aa2ef0b3ff7f2d2e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| def check_container_health(): | |
| path = "/var/run/docker.sock" | |
| if os.path.exists(path): | |
| return "docker active" | |
| else: | |
| return "docker offline" | |
| res = check_container_health() | |
| print("Status:", res) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment