Questions tagged [volume]
The volume tag has no usage guidance.
20
questions
0
votes
0
answers
25
views
Minimize `docker build` execution time inside Docker-in-Docker containers
The use case:
We have several "Release jobs" in Jenkins that build and push a Docker image of the application to a docker registry, update the project version in various files and finally ...
3
votes
2
answers
752
views
How Docker volume works?
Somebody creates a php and Apache project, with docker, using volumes to persist the files that this project generated (plain text files saved in a folder).
This person built the image and ran the ...
0
votes
1
answer
314
views
How do you a initialize a new volume without a file system or partition table?
I'm using OpenStack and I am trying to provision a compute resource on it. I want that compute resource to attach to a volume. We have three things in play.
Volume openstack_blockstorage_volume_v3
...
1
vote
1
answer
56
views
How would I change the docker's base directory
All my docker related folders are saved in /var/lib/docker. But my / space is very limited. Hence, I would like all of the content present inside this location to go to say /home/User/my_space. How ...
0
votes
1
answer
340
views
Run docker with bind-mount pointing to non-existent host folder: Where is the data?
I run a docker image with a bind-mount pointing to a non-existing host directory. The docker image then created data into that volume, wherever it may be. The data is accessible on every docker run.
...
0
votes
1
answer
50
views
Update volume size dynamically from inside a POD
I was wondering how I could dynamically create and then mount new volumes from inside a pod ? At runtime !
I have to download a lot of files with very different sizes and would like the storage to ...
1
vote
0
answers
390
views
Docker mount volume on SELinux enabled server
I'm trying to run Nginx as the docker container on SELinux enabled server with mounted configuration as
-v /host/path/nginx.conf:/etc/nginx/nginx.conf:Z
That works fine till I will deploy updated ...
1
vote
1
answer
418
views
Docker in docker volume mount doesn't work
I have the below command in my Jenkinsfile:
docker run --rm -v "${WORKSPACE}":/var/cache/de --entrypoint=/usr/local/bin/pytest ${IMAGE_NAME}:${IMAGE_VERSION} -m "not require_dss" -...
0
votes
2
answers
932
views
backup dockerise mysql database from host volume
I use a VPS (my host) where a LAMP server was installed.
I already have a database associated to host mariaDB server Ver 15.1 Distrib 10.1.47 and automysqlbackup backups it. This part works well.
For ...
2
votes
1
answer
255
views
How to Connect Docker Containers?
In "What is a container?" the docker docs show the following nifty image:
For my scenario I have only App A and App B; let's designate them Alice and Bob. How do Alice and Bob communicate, ...
9
votes
1
answer
25k
views
Permission denied within mounted volume inside Podman container
I am starting to learn about containers using podman that came with RHEL8.1 (which AFAIK can be used in place of docker), and have the following baby Dockerfile as a learning exercise:
# Use Alpine ...
0
votes
1
answer
105
views
Upload data into docker container from docker volume
I wish to create a volume and mount it to a docker container in order to collect some artifacts, and I want to reuse these artifacts into another docker container later on. Can i just mount the same ...
1
vote
1
answer
51
views
Auto-managed docker-compose volume not shared among containers
I have a bit of hard time understanding the way docker-compose handles auto-managed volumes. Here is an example docker-compose.yml
version: '3.7'
services:
one:
image: alpine
command: sh -c ...
2
votes
1
answer
21k
views
Why does my Docker composer not work with volume?
I'm trying to create a volume to be shared among the containers, and this volume binds to a location of my host, the problem is that every time I run the docker-compose up gives the following error:
...
10
votes
5
answers
31k
views
Docker compose volume syntax valid for Windows and Linux
We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment.
The local ...
1
vote
0
answers
395
views
Persistent storageClass for GitLab on Kubernetes [closed]
Using the official helm chart and documentation, I want to deploy GitLab to Kubernetes. The storage guide shows how to store persistent data and also offers example Helm values. Sadly this doesn't ...
3
votes
1
answer
85
views
Store named volumes on another drive
I'm really familiar with Docker on Linux but my company's IT department uses Windows. They're interested in converting VM-based services over to Docker so I'm trying to get them set up with a good ...
1
vote
2
answers
2k
views
Docker - Mount a volume from a container to an other (equivalent volumes_from) in docker-compose 3
I've two containers : nginx & angular. The angular container contains the code and is automatically pulled from the registry when there is a new version (with watchtower).
I set up a Shared ...
2
votes
1
answer
82
views
Where is it said I can safely the same local volume to multiple docker containers?
According to that StackOverflow answer:
Yes you can add same location as a volume to many docker containers.
But I read the Docker Volume documention and I can't find where it is said a local ...
16
votes
2
answers
14k
views
How to deal with docker compose's naming convention of named volumes?
When defining named volumes in docker-compose.yml, their names are prepended with their parent folder name. This causes a problem when scripts outside of docker compose have to interact with them. The ...