Questions tagged [volume]
18 questions
21
votes
3 answers
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 Linux base image
FROM alpine:latest
# Install…
hpy
- 601
- 1
- 4
- 8
17
votes
2 answers
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 question is, what is the best way to deal with…
Moritz
- 1,227
- 2
- 11
- 24
10
votes
5 answers
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 directory is mounted as a volume:
volumes:
…
Bruce Becker
- 3,783
- 4
- 20
- 41
4
votes
2 answers
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 project normally, with the exception of one detail,…
Jose_Neto5689
- 41
- 4
3
votes
1 answer
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 Windows-based Docker infrastructure.
I've started…
John Kugelman
- 141
- 3
2
votes
2 answers
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:
In file '. \ docker-compose.yml', service…
Carlos Henrique Carniatto
- 21
- 1
- 1
- 2
2
votes
1 answer
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 volume can safely be shared between several containers…
Sylvain Leroux
- 1,660
- 2
- 15
- 27
2
votes
1 answer
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, generally and specifically? Using the KISS principle,…
Nicholas Saunders
- 375
- 3
- 12
- 22
1
vote
2 answers
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 Volume between angular & nginx to share the code from…
Martin Paucot
- 111
- 3
1
vote
1 answer
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 would I do that? I could use symbolic link. But,…
Diwakar
- 11
- 1
1
vote
1 answer
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" -s -v --cov-report term --cov=app_dss_bundle…
arielma
- 339
- 2
- 9
- 22
1
vote
1 answer
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 'echo one >> /data/db.txt && cat /data/db.txt |…
michaeldel
- 121
- 3
0
votes
1 answer
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
Compute Resource…
Evan Carroll
- 2,921
- 6
- 37
- 85
0
votes
1 answer
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.
If I then create that missing host directory and…
bebbi
- 101
0
votes
1 answer
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 adapt to my needs...
Use case example :
There is a…
Doctor
- 111
- 3