Questions tagged [volumes]

322 questions
0
votes
1 answer

Why is File Mounted on Container via docker-compose not Accessible?

In my docker-compose file, I try to mount a file from the host into the docker container. The docker-compose file I have something like this: version "2" services: myservice: image: images/previmage:1.0.0 volumes: -…
George Hernando
  • 2,550
  • 7
  • 41
  • 61
0
votes
0 answers

How to release memory of docker after copying files?

We are developing java application where performance is very important. It processes a lot of files and creates a lot of files as output. So to free memory we make temporary save of data to disk after batch of files (e.g. 15 files). These temporary…
0
votes
2 answers

Kubernetes Stateful Sets - Mapping existing IDs to persistent/stateful pods

Thanks in advance to all those who help. Hello, I have somewhat of a unique problem, its rather lengthy to explain but I think if solved we can expand the use-cases of Kubernetes. I think I know how to solve it, but I'm not sure if Kubernetes…
0
votes
1 answer

Named container shared between different docker-compose files

I've seen some similar questions but found no solution for myself. I have 2 docker-compose files, I have created a named volume and I'm currently using it like this: app: ... volumes: - volume_static:/path/to/container …
Zeno Trevisan
  • 517
  • 1
  • 8
  • 23
0
votes
2 answers

Restructure docker persistent volume / mount path

I was using the Postgres:11 docker image for a while now until I noticed that next to my persistent volume mount "pg-data" (Destination: "/var/lib/postgresql/data/pgdata") there was another unnamed volume listed when doing docker inspect…
Alex
  • 2,784
  • 2
  • 32
  • 46
0
votes
1 answer

Docker shared volume is not readable for a container after changing volume contents

I have got following compose file where i'm sharing some generated html data from Jenkins container to the host drive and reading this data by Nginx container from the host drive. I'm using Ubuntu Server 18.04 on AWS. The problem is that I can read…
Dmitry
  • 93
  • 1
  • 4
0
votes
0 answers

Rolling update with shared folders/files Docker

I'm looking for a way to share files/folders between Docker containers. Especially sharing a file gives me issues. I want to use Docker in production with docker-compose and use a deployment technic that gives me zero downtime (like green/blue or…
0
votes
0 answers

Kubernetes sharing a binary across nodes

Is there an alternative to sharing a jdbc driver across multiple pods spread over multiple nodes? I am using a NFS share, however, in case I need to spin up a brand new node, I would need to perform an additional step of mounting the NFS share. …
sharman
  • 515
  • 1
  • 5
  • 18
0
votes
0 answers

No update of docker container files based on local changes when using Docker-compose volumes

When I make a change to my local file (express-server.js) I'm not seeing notification of the change in the docker-compose terminal. This would imply there is no update to the docker container files occurring. (the 'check' string printed at the…
DeeFisher
  • 408
  • 4
  • 9
0
votes
1 answer

Docker does not update volume inside container

Hello I have a docker container running. I start it with docker-compose and the respective host folder is also mounted as volume version: '3.3' services: web: build: context: ./build/docker dockerfile: Dockerfile image:…
0
votes
1 answer

Volumes and permissions between host and docker container

I'm trying to dockerize all of the services on my host machine. But I'm running into the following problems with Docker and volume-permissions between host and docker. I have a host machine with the following folder-structure: - /data/mysql (user:…
Twoez
  • 540
  • 1
  • 5
  • 17
0
votes
1 answer

How do I mount volumes on a docker container that is being created by another docker container?

I have a containerized REST API server using docker. I have mounted a folder on my host machine to this rest container using docker flag --mount type=bind, source=, target= This works perfectly and I can see…
goldentiger
  • 67
  • 2
  • 8
0
votes
0 answers

Docker compose-up of copied path doesn't take port or volume

I have a problem using docker on macOs Mojave with Docker Desktop community Version 2.0.0.3. I followed this tutorial: https://www.cloudreach.com/en/insights/blog/containerize-this-how-to-use-php-apache-mysql-within-docker-containers/ and then did…
user3332010
  • 147
  • 1
  • 11
0
votes
1 answer

docker-compose empty volume with a rails app on OSX

Not sure how to ask this question because I can't understand the problem. Also, I'm not a docker expert and this may be a stupid issue. I have a Rails project with docker-compose. And there's 2 situations. First I'm able to build and run the app…
Matias
  • 575
  • 5
  • 17
0
votes
1 answer

Jenkins container persistence on Kubernetes cluster - PersistentVolumeClaim (VMware/Vsphere)

Trying to persist my jenkins jobs on to vsphere storage when I delete the deployments/services. I've tried using the standard approach: used StorageClass, then made a PersistentVolumeClaim which is referenced in the .ayml file that will create the…
Alias
  • 163
  • 8