devcontainers / devcontainers/cli

devcontainer exec does not always propagate SIGTERM to docker exec

Ouverte
#888 1 commentaire 0 réactions 1 personne assignée Réclamée par @chrmarti Voir sur GitHub
bug upstream
Langage dominant
TypeScript
Étoiles
3k
Forks
457
Merge moyen
13 h 17 min
PR mergées (30 j)
6

Description

Steps to reproduce:
- Run devcontainer exec without pty, for instance:
```
devcontainer exec --container-id 1234abcdefgh -- sleep infinity > /dev/null 2>&1
```
- Check that on the host machine and inside the container you have infinity sleep process: `ps -auxf |grep "infinity"`
- Interrupt `devcontainer exec` with SIGTERM, i.e. kill the process or just interrupt the terminal.
- Check on the host machine the docker process is gone, but inside the container infinity sleep is dangling.

It seems `docker exec` is terminated without SIGTERM, leading to ungraceful termination.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.