Skip to content

Interrupting kathara exec doesn't interrupt the command being exec'd #371

@Trigary

Description

@Trigary

Operating System

Ubuntu 24.04.3 LTS running on WSL2

Kathará Version

3.8.0

Bug Description

Interrupting (via Ctrl+C) kathara exec <device> <command> doesn't interrupt the <command> being executed. It continues running in the background.

Steps To Reproduce

On 192.168.1.2: run tcmpdump and observe the output.

In another terminal:

  • Run kathara exec pc1 ping 192.168.1.2
  • In the other terminal we can see the ICMP packets
  • Interrupt the pinging by pressing Ctrl+C
  • We receive back the prompt, the interruption was seemingly successful
  • In the other terminal we can see that ICMP packets are still being received

Expected Behavior

When I press Ctrl+C while kathara exec pc1 ping 192.168.20.20 is running, I expect the pinging to stop.

Check Command Output

Current Manager is:             Docker (Kathara)
Manager version is:             28.5.1
Python version is:              3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]
Kathara version is:             3.8.0
Operating System version is:    Linux-6.6.87.2-microsoft-standard-WSL2-x86_64
[Deploying devices]   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1/1
[Deleting devices]   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1/1
✓ Container run successfully.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions