Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

380
Views
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 ?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

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.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!