Questions tagged [volumes]
322 questions
5
votes
1 answer
kubernetes deployment mounts secret as a folder instead of a file
I am having a config file as a secret in kubernetes and I want to mount it into a specific location inside the container. The problem is that the volume that is created inside the container is a folder instead of a file with the content of the…

zozo6015
- 557
- 2
- 11
- 27
5
votes
1 answer
Docker is slow after adding volumes (Wordpress)
I would like to use Docker for local development. When I create a container with Wordpress using Docker Compose, everything loads very quickly in the browser. It's much faster than using Local by Flywheel. The problem is that I do not have access to…

Ivan
- 51
- 1
- 5
5
votes
1 answer
Recommended way to provide configuration files to Docker containers
I am moving our web application to docker-compose deployment (Django, DRF, AngularJS).
Docker looks solid now and things are going well.
I want to:
confirm with you that I am following best practices regarding application configuration files
know…

waverider
- 308
- 2
- 10
5
votes
2 answers
Relative path binding in docker for volumes in macOS does fail
I am using docker-compose and I would like to create a relative two-path binding.
Folder structure and path at the host machine:
/Users/username/Documents/Repos/docker-gulp-template/bla
docker-gulp-template
Dockerfile
docker-compose.yml
Bla…

Burg
- 191
- 3
- 15
5
votes
0 answers
When are docker-compose on-the-fly volumes reused vs. recreated?
I have a docker-compose.yml like this:
version: '2'
services:
app:
build: .
volumes:
- /usr/src/app
If I do docker-compose up, then any changes I make to the /usr/src/app are persisted across runs. I can control+C and then…

rocketmonkeys
- 5,473
- 5
- 28
- 21
5
votes
1 answer
Kubernetes persistent volumes with azureFile
I'm trying to create a persistent volume using the azureFile however I keep getting the following error.
MountVolume.SetUp failed for volume "kubernetes.io/azure-file/2882f900-d7de-11e6-affc-000d3a26076e-pv0001" (spec.Name: "pv0001") pod…

R. de Vries
- 51
- 1
- 3
5
votes
1 answer
Docker Named Volume location Mac
I'm using Docker for Mac 1.12.1 and have a Docker Compose file which starts WordPress and MySQL services
Compose file
version: '2'
services:
db:
container_name: mysql_db
image: mysql:5.7
volumes:
- "./.data/db:/var/lib/mysql"
…

Carl Wainwright
- 328
- 5
- 18
4
votes
2 answers
Defaulted container "container-1" out of: container-1, container-2
In K8s i'm practising the example 6.1. A pod with two containers sharing the same volume: fortune-pod.yaml from the book kubernetes in Action. In volumes concept where my pod contain 2 containers, one of the containers is not running, Please guide…

Praveen
- 43
- 1
- 6
4
votes
1 answer
Gitlab Docker-in-Docker CI\CD scheme: how to pass-through volumes
Suppose I have repository on Gitlab and following deploying scheme:
Setup docker and gitlab-runner with docker executor on host server.
In .gitlab-ci.yml setup docker-compose to build and up my service together with dependencies.
Setup pipeline to…

petRUShka
- 9,812
- 12
- 61
- 95
4
votes
3 answers
How to use Skaffold with kubernetes volumes?
I have an python application whose docker build takes about 15-20 minutes.
Here is how my Dockerfile looks like more or less
FROM ubuntu:18.04
...
COPY . /usr/local/app
RUN pip install -r /usr/local/app/requirements.txt
...
CMD ...
Now if I use…

Rajdeep Mukherjee
- 97
- 2
- 5
4
votes
1 answer
docker container directory gets overwritten by persistent volume (claim)
I'm deploying locally in docker-for-desktop. So that I can migrate to a kubernetes cluster in the future.
However I face a problem. Directories in the docker container/pod are over written, when persistent volumes are used.
I'm pulling the latest…

B.Kingma
- 79
- 1
- 5
4
votes
0 answers
Listing unmounted volumes
I'm looking to make a small menu-bar app to mount/unmount both internal and USB drives. I'm new to Swift/Cocoa so it's a bit a of a learning curve.
I can get a list of mounted volumes using the FileManager().mountedVolumeURLs(...) method, but I'm…

Socii
- 535
- 4
- 13
4
votes
1 answer
docker container logging on host via volumes
I'm trying to have my container log into /var/log/app, a directory on the host machine. Unfortunately, changes made in the container are not being persisted, for example:
1 - start a container
sudo docker run -v /var/log/app --entrypoint bash -t -i…

Pablo Fernandez
- 103,170
- 56
- 192
- 232
4
votes
1 answer
Can we create volumes inside docker container
I am trying to create logical volumes (like /dev/sdb or so) inside a running centos docker container. If anyone has tried doing so successfully, please help!
After installing lvm2 and running lvmetad, when I tried creating a VG, I get the below…

Raj
- 147
- 4
- 15
3
votes
0 answers
Permission issues restoring docker volume - Cannot utime: Operation not permitted
I have a docker volume created in a windows system. I have made a backup to a tar file using the command below and all seeing to work. When I inspect the file using 7-zip, I can see that the files have no user assigned and root group assigned to…

Henrique
- 328
- 1
- 2
- 10