[Bug] Delete does not work from docker terminal exits #972

Closed
opened 2025-12-29 02:26:52 +01:00 by adam · 3 comments
Owner

Originally created by @peskyAdmin on GitHub (Mar 12, 2025).

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

root@Headscale:# docker exec headscale headscale nodes delete -i 1
? Do you want to remove the node Mac? (y/N) root@Headscale:
# 5;214R5;45R

so when entering the command docker exec headscale headscale nodes delete -i 1 i get the prompt ? Do you want to remove the node Mac (y/N) ? but i do not have the optunity to enter y the terminal is not waiting for user input moves onto the next command and dumps 5;214R5;45R in the terminal

Expected Behavior

root@Headscale:~# docker exec headscale headscale nodes delete -i 1
? Do you want to remove the node Mac? (y/N) y

Node deleted

Steps To Reproduce

in 0.25.1 fresh docker install

with a unmodified base config except for url and port

register a node and then run docker exec headscale headscale nodes delete -i 1

Environment

- OS: headscale 0.25.1 docker container
- Headscale version: 0.25.1
- Tailscale version: 1.80.2

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Anything else?

No response

Originally created by @peskyAdmin on GitHub (Mar 12, 2025). ### Is this a support request? - [x] This is not a support request ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior root@Headscale:~# docker exec headscale headscale nodes delete -i 1 ? Do you want to remove the node Mac? (y/N) root@Headscale:~# 5;214R5;45R so when entering the command ` docker exec headscale headscale nodes delete -i 1` i get the prompt `? Do you want to remove the node Mac (y/N) ?` but i do not have the optunity to enter y the terminal is not waiting for user input moves onto the next command and dumps ` 5;214R5;45R` in the terminal ### Expected Behavior root@Headscale:~# docker exec headscale headscale nodes delete -i 1 ? Do you want to remove the node Mac? (y/N) y Node deleted ### Steps To Reproduce in 0.25.1 fresh docker install with a unmodified base config except for url and port register a node and then run `docker exec headscale headscale nodes delete -i 1` ### Environment ```markdown - OS: headscale 0.25.1 docker container - Headscale version: 0.25.1 - Tailscale version: 1.80.2 ``` ### Runtime environment - [x] Headscale is behind a (reverse) proxy - [x] Headscale runs in a container ### Anything else? _No response_
adam added the bug label 2025-12-29 02:26:52 +01:00
adam closed this issue 2025-12-29 02:26:53 +01:00
Author
Owner

@peskyAdmin commented on GitHub (Mar 12, 2025):

for those facing this the work around is add --force to the command

@peskyAdmin commented on GitHub (Mar 12, 2025): for those facing this the work around is add `--force` to the command
Author
Owner

@nblock commented on GitHub (Mar 12, 2025):

Please try with: docker exec -it headscale headscale nodes delete -i 1

@nblock commented on GitHub (Mar 12, 2025): Please try with: `docker exec -it headscale headscale nodes delete -i 1`
Author
Owner

@peskyAdmin commented on GitHub (Mar 12, 2025):

using -it works. makes sense to ask for an interactive terminal if you plan on interacting...

@peskyAdmin commented on GitHub (Mar 12, 2025): using -it works. makes sense to ask for an interactive terminal if you plan on interacting...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#972