Skip to content

sbin/stop-clp.sh fails on older versions of docker #1322

@kirkrodrigues

Description

@kirkrodrigues

Bug

As the title says. The error is as follows:

2025-09-23T22:41:08.655 INFO [stop_clp] Stopping clp-webui-bfe2...
unknown flag: --timeout
See 'docker stop --help'.
2025-09-23T22:41:09.083 ERROR [stop_clp] Failed to stop CLP.
Traceback (most recent call last):
  File "/clp-json-x86_64-v0.5.1/lib/python3/site-packages/clp_package_utils/scripts/stop_clp.py", line 142, in main
    stop_running_container(container_name, already_exited_containers, force)
  File "/clp-json-x86_64-v0.5.1/lib/python3/site-packages/clp_package_utils/scripts/stop_clp.py", line 43, in stop_running_container
    subprocess.run(cmd, stdout=subprocess.DEVNULL, check=True)
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker', 'stop', '--timeout', '10', 'clp-webui-bfe2']' returned non-zero exit status 125.

CLP version

17ec517

Environment

  • Ubuntu 22.04
  • Docker 24.0.6

Reproduction steps

sbin/start-clp.sh
sbin/stop-clp.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions