Skip to content

Commit

Permalink
[IMP] Included new command 'docky system' just return a resume of 'do…
Browse files Browse the repository at this point in the history
…cker info' for check errors related to OS or older or newer libraries versions.
  • Loading branch information
mbcosta committed Jul 11, 2024
1 parent 4a19b7d commit f4edc9a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docky/cmd/run_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,27 @@ class DockyOpen(DockyExec):
def _main(self, *optionnal_command_line):
super()._main(*optionnal_command_line)
self._exec("dcpatched", ["exec", "-e", "NOGOSU=True", self.service] + self.cmd)

@Docky.subcommand("system")
class DockySystem(DockyExec):
"""
Check your System Infos:
OS Type, Kernel, OS, Docker, Docker Compose, and Docky versions.
"""
def _main(self):
# Info
infos = docker.system.info()
# OS Type
logger.info("OS Type " + infos.os_type)
# Kernel Version
logger.info("Kernel Version " + infos.kernel_version)
# Operation System
logger.info("OS " + infos.operating_system)
# Python Version
logger.info("Python Version " + sys.version)
# Docker Version
logger.info("Docker Version " + infos.server_version)
# Docker Compose Version
logger.info(docker.compose.version())
# Docky Version
logger.info("Docky Version " + Docky.VERSION)

0 comments on commit f4edc9a

Please sign in to comment.