Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

136
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda