Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

515
Vistas
Docker: cannot link containers in --net=host mode

I have a Couchbase server container named db launched with --net=host option which exposes port 11210, and now I have to link another container to it. If I use the --link option while running my new container, that is type:

docker run -d -P --name my_name --link db:db my_image

I get:

Error response from daemon: Conflicting options: host type networking can't be used with links. This would result in undefined behavior.

How can I solve this?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You can't.

"Linking" containers doesn't make any sense when using --net=host. When you link containers, Docker creates entries in /etc/hosts so that the containers can connect to each other by name, but when using --net=host your containers do not have unique addresses. They are sharing the host network environment.

You can just use localhost to access services running in either container, or any valid address on your host (assuming that your service is configured to listen on all available addresses).

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda