Skip to content

system-info fails if docker is not installed #216

@ahankinson

Description

@ahankinson

If I run qlever system-info without docker installed, I get the following output:

Invoking command `system-info` without a Qleverfile. You have to specify all required arguments on the command line. This is possible, but not recommended.

Command: system-info

Show system information and Qleverfile

System Information
------------------

Version: 0.5.33 (qlever --version)
OS: Linux (Fedora Linux 42 (Cloud Edition))
Arch: x86_64
Host: nnnnnnnnnnnnnnnnnnnnnnnnn
RAM: 15.6 GB total, 14.7 GB available
CPU: 8 Cores, 8 Threads @ 0.00 GHz
CWD: /home/fedora
Disk space in /dev/vda5 @ /home is (btrfs): NN GB free / NN GB total
User and group on host: uid=0(root) gid=0(root) groups=0(root)
An unexpected error occurred: /usr/sbin/bash: line 1: docker: command not found

Traceback (most recent call last):
  File "/root/.local/share/pipx/venvs/qlever/lib64/python3.13/site-packages/qlever/qlever_main.py", line 38, in main
    command_successful = command_object.execute(args)
  File "/root/.local/share/pipx/venvs/qlever/lib64/python3.13/site-packages/qlever/commands/system_info.py", line 118, in execute
    user_info = Containerize.run_in_container("id", args).strip()
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/root/.local/share/pipx/venvs/qlever/lib64/python3.13/site-packages/qlever/containerize.py", line 159, in run_in_container
    return run_command(run_cmd, return_output=True)
  File "/root/.local/share/pipx/venvs/qlever/lib64/python3.13/site-packages/qlever/util.py", line 75, in run_command
    raise Exception(result.stderr.replace("\n", " ").strip())
Exception: /usr/sbin/bash: line 1: docker: command not found

Qlever runs fine (I built and run it locally with the following in my Qleverfile):

[runtime]
SYSTEM = system

Weirdly, if I pass the path to my Qleverfile it works, but it says I don't have a Qleverfile!

$ qlever --qleverfile /opt/qlever/qlever-indices/nnnn/Qleverfile system-info

Command: system-info

Show system information and Qleverfile

System Information
------------------

Version: 0.5.33 (qlever --version)
OS: Linux (Fedora Linux 42 (Cloud Edition))
Arch: x86_64
Host: nnnnnnnnnnnnnn
RAM: 15.6 GB total, 14.8 GB available
CPU: 8 Cores, 8 Threads @ 0.00 GHz
CWD: /home/fedora
Disk space in /dev/vda5 @ /home is (btrfs): NNNN GB free / NNNN GB total
User and group on host: uid=0(root) gid=0(root) groups=0(root)

Contents of Qleverfile
----------------------

No Qleverfile found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions