FileNotFoundError: [Errno 2] No such file or directory: 'docker': 'docker'

I am trying to install KoboToolBox by using kobo-install but I got this error :

HEAD is now at 3308730 Upgrade KPI and Kobocat to 2.024.19d
From GitHub - kobotoolbox/kobo-docker: Stack of docker containers to all server-side components of KoBoToolbox (kpi, kobocat, enketo-express).

  • tag 2.024.19d → FETCH_HEAD
    Traceback (most recent call last):
    File “./run.py”, line 115, in
    run()
    File “./run.py”, line 52, in run
    Command.start(force_setup=force_setup)
    File “/home/tjggisdb/kobo/kobo-install/helpers/command.py”, line 300, in start
    cls.stop(output=False, frontend_only=frontend_only)
    File “/home/tjggisdb/kobo/kobo-install/helpers/command.py”, line 415, in stop
    cls.stop_containers(‘maintenance’)
    File “/home/tjggisdb/kobo/kobo-install/helpers/command.py”, line 490, in stop_containers
    CLI.run_command(command, path)
    File “/home/tjggisdb/kobo/kobo-install/helpers/cli.py”, line 156, in run_command
    cwd=cwd)
    File “/usr/lib/python3.7/subprocess.py”, line 411, in check_output
    **kwargs).stdout
    File “/usr/lib/python3.7/subprocess.py”, line 488, in run
    with Popen(*popenargs, **kwargs) as process:
    File “/usr/lib/python3.7/subprocess.py”, line 800, in init
    restore_signals, start_new_session)
    File “/usr/lib/python3.7/subprocess.py”, line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: ‘docker’: ‘docker’

What is the cause of this error and how I should solve it?

Welcome back to the community, @hermanmaraden! Pinging @stephenoduor and @ks_1 for your support!

I’m not sure but are you trying with sudo?
sudo python3 run.py --setup