Questions tagged [mounted-volumes]
95 questions
64
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…
![](../../users/profiles/1077485.webp)
DroidOS
- 7,220
- 11
- 70
- 142
14
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…
![](../../users/profiles/6711615.webp)
user_2011
- 171
- 2
- 8
6
votes
1 answer
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 =…
![](../../users/profiles/4709348.webp)
Tomas.1997
- 153
- 2
- 5
5
votes
1 answer
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…
![](../../users/profiles/13549112.webp)
JimT
- 76
- 3
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…
![](../../users/profiles/4879301.webp)
Hadrien TOMA
- 1,615
- 1
- 21
- 31
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:…
![](../../users/profiles/1953420.webp)
Logan Murphy
- 5,700
- 2
- 21
- 39
4
votes
2 answers
Docker volume mount issue to a mounted folder
We have mounted a folder in a Linux machine to our docker container application using (docker-compose)
volumes:
- /mnt/share:/mnt/share
The /mnt/share is a mounted folder in the machine(Not a real folder in the machine, its our file server). IF for…
![](../../users/profiles/314479.webp)
Bijesh CHandran
- 420
- 1
- 6
- 18
3
votes
1 answer
unable to understand mounting postgres data path onto minikube kubernetes deployment with permission errors
I’m getting started with kubernetes, and I want to create a simple app with a single webserver & postgres database. The problem I’m running into is the deployment of the postgres is giving me permission errors. The following are discussions around…
![](../../users/profiles/7123520.webp)
M.Holmes
- 165
- 1
- 11
3
votes
1 answer
Mount local folder as volume using Swift
I'm looking for a way to mount a Local folder as a Volume in OSX. Searching so far hasn't got any results. I want to do this programatically via Swift. For instance, I want to mount /Users/shoaib/Test to /Volumes/MyVolume which can be accessed via…
![](../../users/profiles/313883.webp)
Sam
- 780
- 2
- 10
- 21
2
votes
1 answer
mariadb as docker container - corrupted startup on host mount binding
i want to run latest mariadb:10.4.8 as docker container with its data folder persisted as host mount.
This is my docker-compose.yaml
database:
mem_limit: 1073741824
image: mariadb:stable
environment:
MYSQL_DATABASE: mydata
MYSQL_PASSWORD:…
![](../../users/profiles/4008150.webp)
Robert Lachner
- 427
- 3
- 17
2
votes
1 answer
Kubernetes: MountVolume.SetUp failed: hostPath type check failed is not a directory
I'm trying to deploy a login consent provider with hydra.
Here is the yaml file.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: login-consent-deployment
labels:
app: login-consent-nginx
spec:
replicas: 1
selector:
…
![](../../users/profiles/8671005.webp)
Ziko
- 611
- 6
- 18
2
votes
0 answers
Can't mount EBS volumes (shown as NVME) in c5 AWS EC2 instance
People seem to have alot of issues with the newer instance type NVME volumes because of name mappings. That I can handle. For me, the issue is simple and worse: mounting doesn't have an effect:
ubuntu@ip-10-0-0-60:~$ lsblk
NAME MAJ:MIN RM…
2
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…
![](../../users/profiles/8509346.webp)
Michael Dalton
- 55
- 1
- 9
1
vote
0 answers
How to create named volumes in podman's kube files?
I am running a mariadb pod by playing a kube file in Podman. Instead of using the fixed hostPath, I would like to use the named volume. However, this requires that the named volume has already been created. Is there a way to create a named volume…
![](../../users/profiles/1106294.webp)
Muzammil
- 179
- 1
- 2
- 11
1
vote
0 answers
How to mount a folder in a machine to a docker container in another machine?
I have a running docker container that uses volume mounting and NFS to store data in another machine.
Now I want to map this volume to a new folder in the filesystem of a new machine.
shall I do bind mounting in the container to the new VM location…
![](../../users/profiles/11309469.webp)
NesuGH
- 51
- 1
- 7