# Añadir una entrada en el archivo hosts

**URL:** <https://meta.discourse.org/t/adding-an-entry-in-hosts-file/255835>\
**Category:** Self-hosting\
**Tags:** docker\
**Created:** [21 Febrero, 2023 20:09 UTC](https://meta.discourse.org/t/adding-an-entry-in-hosts-file/255835 "2023-02-21T20:09:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![exhuma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/exhuma/32/103649_2.png) [@exhuma](https://meta.discourse.org/u/exhuma)\
**Post date:** [13 Junio, 2023 06:40 UTC](https://meta.discourse.org/t/adding-an-entry-in-hosts-file/255835/2 "2023-06-13T06:40:45Z")

</div>

Me encuentro actualmente con el mismo problema. También intenté agregar manualmente un comando para que se ejecute en el archivo de configuración sin éxito.

El archivo `hosts` es manejado por docker, y normalmente necesitas usar [`--add-host`](https://docs.docker.com/engine/reference/run/#network-settings) para lograr esto. Aún no sé cómo agregar este argumento al inicio del contenedor de discourse.

---

_[View the full topic](https://meta.discourse.org/t/adding-an-entry-in-hosts-file/255835)._
