Questions tagged [mounted-volumes]
162 questions
67
votes
3 answers
Orphaned Docker mounted host volumes?
I just inspected my /var/lib/docker/volumes folder and discovered that is bursting with folders named as Docker UUIDs each of which contain a config.json file with contents along the lines…

DroidOS
- 8,530
- 16
- 99
- 171
19
votes
2 answers
Changing default file owner and group owner of kubernetes secrets files mounted on projected volumes
I am new to K8S. I have a yaml file which generates kubernetes secrets mounted on projected volumes. Upon execution, I found that the secret files (packaged with secrets) are showing "root" as file owner and group owner. I want to change the file…

user_2011
- 241
- 1
- 3
- 10
8
votes
2 answers
Docker Desktop 2.2+ incredibly slow performance with host volume mounts
I've got a build which is quite intensive in terms of file io. It involves 70k loose files as well as a fair amount of zipping/unzipping.
The performance of this build plummets when run inside of a Docker Desktop 2.2+ container using host volume…

JimT
- 106
- 1
- 3
8
votes
3 answers
Is it possible to have the same PVC as two volumes in Kubernetes?
My pod declares two different volumes.
I use some definition templating, and depending on the environment in some cases I would like to reuse the same claim for the two volumes.
This results in an error:
Unable to mount volumes for pod…

egt
- 175
- 2
- 9
7
votes
3 answers
Get mounted volumes list with Swift?
Does anyone know how to get a list of all removable volumes mounted with Swift?
I've already tried this, but it return a list of all files and subfolders of external drivers:
let filemanager:NSFileManager = NSFileManager()
let files =…

Tomas.1997
- 173
- 2
- 5
6
votes
1 answer
Relative path in Docker container/volume for python script
I am new to Docker but have had success in Dokcerizing some existing python code using the docker toolbox for windows 10.
Currently i have this setup:
picture of working python code in Docker container
This is done with the Dockerfile:
FROM…

Michael Dalton
- 95
- 1
- 1
- 9
5
votes
2 answers
Docker bind mount volumes do not propagate changes events watched by angular `ng serve` execution
Following these steps:
Define the Dockerfile:
FROM node:alpine
RUN yarn global add @angular/cli
RUN yarn global add node-sass
RUN mkdir /volumes
WORKDIR /volumes
EXPOSE 4200
ENTRYPOINT ["ng"]
Build an image from this Dockerfile:
docker build…

Hadrien TOMA
- 2,375
- 2
- 22
- 32
5
votes
1 answer
Windows Docker mongo container doesn't work with volume mount
I have the following docker command
docker run -v //c/data:/data/db mongo
and I get the following error response from docker / mongo
MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=8706cbf1b78f
db version v3.4.2
git version:…

Logan Murphy
- 6,120
- 3
- 24
- 42
4
votes
1 answer
Docker compose build context and docker volumes clarification
i am confused if there is a link between docker build context and volumes, i have the following docker-compose and could use some clarifications.
The context is set at ./app and then the volumes are referencing the same ./app, where is that volume…

ashk
- 41
- 1
- 4
4
votes
0 answers
How to mount a NFS file share inside a Windows Docker Container
I am running Docker on a Windows Server 2022.
I need to start a Windows Container - must be a windows container because I am porting a Net Framework App that cannot run on Linux.
My Windows Container needs to write uploaded files to a network…

Felipe Daiello
- 61
- 3
4
votes
1 answer
how to use aws sam cli with volumes --docker-volume-basedir
I have sam initiated on local machine and below is the directory structure
- application (python3 code)
- efs (got some files)
- template-local.yaml
Now, How do I tell sam local to start api with volume attachs.
I am running below command
sam…

Rafee
- 3,975
- 8
- 58
- 88
4
votes
1 answer
Mount repo into docker image when running yaml-pipeline in Azure DevOps
I am running a docker image in Azure Devops yaml-pipeline using a container step. However, I have problems mounting the content of the repo so that this is accessible from inside the docker image.
The Azure Devops pipeline.yml file is as…

dehkp
- 43
- 3
3
votes
1 answer
Why Kubernetes mounted volume files turning into directory inside the pod
I need to copy a zip file from my host machine to pod/container. for that using hostPath volume as follows
volumeMounts:
- mountPath: "/tmp/delivery/AB_Database.zip"
name: db-volume
subPath: AB_Database.zip
volumes:
- name:…

Virendra Singh
- 33
- 6
3
votes
1 answer
Docker Issue: Removing a Bind-Mounted Volume
I have been unable to find any help online for this simple mistake I made, so I was looking for some help. I am using a server to run a docker image in a container and I mistyped and have caused an annoyance for myself. I ran the command
docker run…

Josh B.
- 157
- 7
3
votes
0 answers
External volume monitoring in Digital Ocean
I need to monitor the external volumes that my digital ocean droplets are using however, it seems that digital ocean internal monitoring system does not support monitoring external volumes but only the if the disk utilization is beyond a threshold.…

koush_noob
- 51
- 1