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

390
Vistas
How to enable code running in a docker container access files on the host on which the container is running?

I have an application running as a docker container on a host. What I want is to have a location in the host filesystem accessible from the application. The reason I want a location outside the docker container is that the said location will contain a text file that would be updated by a piece of code running on some other host.

What location could be used for this purpose ?

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

0

You need to add a volume during the run command using -v.

docker run -d -v <path-of-volume-in-host> <path-to-mount-in-container> ubuntu

You may refer this for more information.

over 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