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

134
Views
Docker Volume not saving

In my Dockerfile, I have this line to create a data volume

VOLUME /Infrared360SA

I see that this volume was created by running the following:

zack@zack-Inspiron-5748:~/Docker$ sudo docker volume inspect Infrared360SA
[
    {
        "Driver": "local",
        "Labels": null,
        "Mountpoint": "/var/lib/docker/volumes/Infrared360SA/_data",
        "Name": "Infrared360SA",
        "Options": {},
        "Scope": "local"
    }
]

When I run my application via docker run however, I'm not seeing data persist underneath that directory. The application I'm trying to run is an embedded tomcat web app that uses an hsql database. I can run this web application no problem from the command line via a java startup command and see database changes persist to hsql but when I run the same exact command in the Docker container data is not persisting.

How do I get data to persist inside the volume I defined?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

If you correclty created your docker volume with docker volume create.

You should bind your docker-volume with your dockerfile volume in the docker run command. This way :

sudo docker run -v Infrared360SA:/Infrared360SA avada/ir360sa-5.8.2.0 avada/ir360sa-5.8.2.0 
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!