Returns detailed information about the system that Wings is running on, including Wings version, Docker configuration, container statistics, and hardware specifications.
Verify that the system meets requirements before deploying servers:
def verify_system_requirements(system_info): # Check cgroup version for proper container management if system_info['docker']['cgroups']['version'] != '2': print('Warning: cgroup v2 recommended for optimal performance') # Verify storage driver if system_info['docker']['storage']['driver'] != 'overlay2': print('Warning: overlay2 storage driver recommended') # Check available CPU cores if system_info['system']['cpu_threads'] < 4: print('Warning: At least 4 CPU threads recommended')
The system information is gathered from multiple sources:
Wings Version: Read from system.Version constant in system/const.go
Docker Information: Retrieved via Docker API using client.ServerVersion() and client.Info()
System Details: Collected using Go’s runtime package and /etc/os-release file
Kernel Version: Parsed from Docker’s kernel detection utilities
The endpoint returns live data from the system and Docker daemon. For frequently updated monitoring, consider caching responses appropriately to reduce load.