Questions tagged [mounted-volumes]
162 questions
0
votes
0 answers
Kubernetes sharing a binary across nodes
Is there an alternative to sharing a jdbc driver across multiple pods spread over multiple nodes? I am using a NFS share, however, in case I need to spin up a brand new node, I would need to perform an additional step of mounting the NFS share. …

sharman
- 515
- 1
- 5
- 18
0
votes
1 answer
Is there a performance advantage to mounting a volume as readonly?
In Kubernetes deployments, you can specify volume mounts as readonly. Is there a performance advantage to it, or logical only?
Is it dependant on the volume type?
To make my intentions clear, I'm using a pv in a scenario where I have one writer and…

Mugen
- 8,301
- 10
- 62
- 140
0
votes
1 answer
Mount kubernetes volume in docker container without erasing the container's data
I'm using the kubernetes plugin to setup a pipeline on jenkins to compile some code.
MY GOAL:
In this pipeline, I'm trying to access some data from a docker container to use it as a cache in a second on (as shown below).
apiVersion: v1
kind:…

ibrahim elouard
- 1
- 1
0
votes
3 answers
Unable to mount a volume to a docker container during jenkins pipeline
I have a jenkins pipeline to checkout, build and deploy a react project.
pipeline {
agent {
docker {
image 'node:6-alpine'
args '-v /home/nginx/console:/home/'
args '-p 3000:3000'
}
}
…

Teddy Kossoko
- 1,168
- 3
- 20
- 48
0
votes
2 answers
When using docker option --mount the target folder is seen as not absolute, while there is no issue when using -v
I am playing around with docker and ran into an issue when mounting docker volumes with --mount instead of -v. It appears to me that the error popping up is not valid, but probably I am missing a small detail here.
The path to which I want bind the…

Patrick
- 33
- 5
0
votes
0 answers
How do I Upload & compile my .C code in the GDB?
I have a very basic question, I installed Oracle VirtualBox, and I imported and run a virtual machine image (OVF file format) which contains a .C code example which I can compile and run without any problem.
See this print…

Android Programmer
- 21
- 5
0
votes
1 answer
Php, can not write to file
Each time I run it the file.txt is 0kb
Permission for that file is 777 owner www-data:www-data
The /var/www/html is on an external HD mounted to the server.
Server is Ubuntu 18.04
Azure hosted
PHP 7.2.19
Apache 2
I have this code

sameh
- 11
- 3
0
votes
1 answer
How to get Mounted Volume information using nio classes
I can use the unsupported sun.awt.shell.ShellFolder classes to get the mounted volume information, but we would much rather use supported classes. It seems like the nio classes should support this, but I can't figure out how.
I'm running with Java…

CasaDelGato
- 603
- 7
- 17
0
votes
1 answer
Unable to copy the file to docker host
I am trying to execute the below docker command where I am trying to get the 'Orthanc.json" file to my system folder which is "orthanc".
docker run --rm --entrypoint=cat jodogne/orthanc /etc/orthanc/orthanc.json >
orthanc/orthanc.json
under…

The Great
- 7,215
- 7
- 40
- 128
0
votes
2 answers
Get Kubernetes FlexVolume Logs
I'm trying to create a custom FlexVolume, but it's failing to attach/mount with a timeout message. Where can I find the logs to determine the cause of failure?
Here is my StatefulSet spec:
kind: StatefulSet
...
spec:
...
template:
...
…

kellanburket
- 12,250
- 3
- 46
- 73
0
votes
0 answers
How fast do the files from a docker image get copied to a named volume after container initialization
I have a stack of containers that are sharing a named volume. The image that contains the files is built to contain code (multiple libraries, thousands of classes).
The issue I am facing is that when I deploy the stack to a docker swarm mode…

Adrian
- 51
- 1
- 5
0
votes
2 answers
Build Project inside docker container and share folder in mounted
I use docker-compose to build my containers and on a state I checkout private repository and I build the project inside container with composer.
I have the following structure
- docker-project
-- docker //here I keep the containers
--- apache
----…

fefe
- 8,755
- 27
- 104
- 180
0
votes
1 answer
How do you recursively delete a named directory from all volumes in Batch?
echo off
for /d /r "c:\" %%a in (TemporaryFolder) do if exist "%%a" echo Removing %%a & rmdir /s /q "%%a"
This for loop deletes every directory called "TemporaryFolder" from the C:\ drive. How would I go through every mounted volume (ie. A:\ - Z:)…

sheepiiHD
- 421
- 2
- 16
0
votes
0 answers
How to persist database of postgresql image with docker-compose and mapped volumes
I have this docker-compose which work on Mac and Linux but not on Windows :(.
Any idea how to fix this?
p.s. I already know the solution with an external volume which I don't prefer because I want to be able to backup the database…

eKelvin
- 921
- 1
- 9
- 25
0
votes
1 answer
C++ dirent.h not working with in Docker container when the target directory is a volume
I'm working with a rather old program and one of the C++ plugins uses the dirent.h library to provide directory listing features to the program.
Strangely, it reads empty for Docker volumes mounted with -v and it's kind of got me stuck in a project.…

Southclaws
- 1,690
- 2
- 16
- 25