# Docker attach donne une nouvelle ligne vide

**URL:** <https://meta.discourse.org/t/docker-attach-gives-empty-new-line/254910>\
**Category:** Self-hosting\
**Tags:** docker-manager\
**Created:** [Février 12, 2023, 4:16 UTC](https://meta.discourse.org/t/docker-attach-gives-empty-new-line/254910 "2023-02-12T16:16:40Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![bquast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bquast/32/289307_2.png) [@bquast](https://meta.discourse.org/u/bquast)\
**Post date:** [Février 12, 2023, 9:07 UTC](https://meta.discourse.org/t/docker-attach-gives-empty-new-line/254910/8 "2023-02-12T21:07:42Z")

</div>

En regardant plus loin en fonction des indices de @pfaffman et @Ed_S, cette réponse de SO l’a bien expliqué (réponse acceptée)

> <https://stackoverflow.com/questions/30172605/how-do-i-get-into-a-docker-containers-shell>

**EDIT** : le fait est qu’un serveur web est en cours d’exécution sur l’image, donc `docker attach` ne fonctionne pas, mais la commande `exec` fonctionne.

---

_[View the full topic](https://meta.discourse.org/t/docker-attach-gives-empty-new-line/254910)._
