Questions tagged [docker-volume]
A docker data volume is a specially-designated directory within one or more containers that bypasses the Union File System.
1,424
questions
-1
votes
1
answer
39
views
How can I modify a file in a newly created name volume? [closed]
I know two methods to modify files in a name volume.
Enter the container, find the file and modify it. But I can't do this because Vim is not installed in the container.
Use docker volume ls , find ...
0
votes
1
answer
55
views
I cannot mount the container I created with Docker Compose to a folder in my local, what's wrong?
I am running a simple application using Node.js and Express. I am trying to create a Docker image of the application and create a container with the image using Docker Compose. I want to mount the ...
0
votes
1
answer
110
views
Docker. How to remove bind mounts between host and container?
I've started a Docker container with a bind mount:
docker run -it -v C:\host_folder:C:\container_folder mcr.microsoft.com/windows/server:ltsc2022 powershell
I wanted to run a couple of .exe files ...
0
votes
2
answers
69
views
Azure App Service Containers where are named volumes stored?
I am trying to host a CalDAV server (Baikal) with MySQL backend - but the issue isn't related to these images specifically. My docker-compose.yml looks like this
version: "3.4"
services:
...
0
votes
1
answer
29
views
How to delay bind mount until docker compose volume is initially populated?
I have the following compose file, based on the one from the Bitnami WordPress container image documentation:
version: '2'
services:
mariadb:
image: docker.io/bitnami/mariadb:10.11.2
volumes:...
1
vote
0
answers
22
views
My docker volume with option :default don't push container data
I want to use a volume for my container and I want that during creation, the container pushes its contents onto my local machine so that my vuejs is present without doing docker-cp or COPY in my ...
0
votes
0
answers
67
views
how i can load project environment into a container?
ho guys sorry but im noob with docker.
i dockerize my ruby script which take data from a local project, but i cant run this container because the environment of this project cant load into container.
...
-1
votes
0
answers
28
views
Creating docker volume from external source on PI os Bookworm
I am unable to create docker volume from external drive and read/write data into it
I am new into docker so please do let me know what I am doing wrongly
I have mount the external drive to my os ...
0
votes
0
answers
26
views
how can i load ruby project environment into docker container?
i have a question for you.
i make a ruby script connected with mysql and mongoDb.
i putted this script into container and i connected this container with these DB.
When i run this container it doesn't ...
2
votes
2
answers
49
views
Finding source of volume in Docker
I have a large Docker volume (300GB) that I want to get rid of. The problem is I can't figure out what's using it.
I've already run:
docker volume prune
docker system prune -a --volumes
and the ...
0
votes
1
answer
24
views
Why additional anonymous created by docker-compose?
I created a volume named testVol using following command in docker:
docker volume create testVol
Then I tried running a container which uses the same volume.
Here is the docker-compose.yml file:
...
0
votes
0
answers
47
views
Docker Mongo access database by moving volume
When using mongo docker image, you can restore a database by using a dump file using the mongorestore command, so I made it locally and now I have all my data stored in a volume
What I want do to is ...
0
votes
1
answer
67
views
Can a Docker volume also be a bind mount?
In Docker documentation, there is a very clear distinction between a bind mount and a volume.
Yet, I stumbled upon this in a compose file, in the root-level volumes element.
volumes:
myvolume:
...
0
votes
0
answers
285
views
#ERROR validating docker-compose.yaml: services.db.volumes.0 type is required (encounterd while running "$ docker compose up -d --build")
I have included the config properties below in a file labelled docker-compose.yaml then tried to run the respective docker compose commands to build the respective images and spin up the ...
0
votes
0
answers
51
views
MySql tables are not showing in docker container
I have a local mysql database with some tables populated but when I try to mount it to a volume and access it through a container, I cannot. I'm able to use the database but no tables show up.
Here is ...
0
votes
0
answers
42
views
devcontainer on Windows mounts empty directory while docker-compose mounts everything correctly
Here are my definitions:
structure:
.devcontainer
devcontainer.json
docker
bot
Dockerfile
entrypoint.sh
docker-compose.base.yaml
docker-compose.dev.yaml
pdm.lock
...
devcontainer....
0
votes
0
answers
50
views
Next.js autoloading is slow on docker
I use official Next.js Dockerfile to dockerize my Next.js based application.
I use the following volumes in my docker-compose.yml to enable autoloader.
Unfortunately in both Mac and Windows autoloader ...
0
votes
0
answers
99
views
Error response from daemon: failed to create symlink: [...] file exists with Docker and Mutagen
I am using two different docker setups for the same project, one for the local development and one for the pipelines. The difference is, that I am using mutagen for local development, to keep ...
0
votes
1
answer
104
views
Can't remove Docker Volume
I trying to remove a docker volume but i've go "It is still mounted" error.. (i use the Convoy plugin)
I don't have any docker container on the server, i removed all of theme,
docker ps -a ...
0
votes
2
answers
169
views
Problem mounting Azure Storage file share on Azure Container Instance group
When I try to deploy Azure Container Instance with a volume mounted from Azure storage account file share, the terraform apply operation continues saying creating, and finally fails with an error
...
0
votes
1
answer
101
views
Using volumes in Docker to use local files in python script [duplicate]
I'm trying to use a volume in Docker to use local files (.mp4) into a containerized python script that process videos. For now the process should be:
containerize the python program
bind this ...
0
votes
1
answer
39
views
How to write to docker volume inside shiny app?
Here is the project directory:
❯ tree ../write-to-volume-from-shiny
../write-to-volume-from-shiny
├── app.R
├── Dockerfile
└── shiny-server.conf
The Dockerfile:
FROM rocker/shiny:4.3.1
RUN rm /srv/...
0
votes
0
answers
43
views
Custom build vs dockware/dev:latest
I am trying to build a custom dockerfile for shopware6:latest :
FROM ghcr.io/friendsofshopware/shopware-cli AS shopware-cli
FROM node:18 AS node
FROM php:8.2-fpm
ARG UNAME=www-data
ARG UGROUP=www-...
0
votes
0
answers
63
views
Default value not being respected in devcontainer.json remoteEnv when using Docker Volume
I'm somewhat "cheating" in that I opened up a GitHub issue for this but am hoping to get a hit here on SO :)
I'm using VS Code devcontainers and cloning a repo into a docker/dev volume. I ...
0
votes
0
answers
195
views
Why does the owner of the podman volume for a rootless container get changed to this particular UID?
I am brand new to podman, and trying to understand something I have observed with permissions / UIDs.
I have created two podman named volumes as my non-root user (named qsd), one to be mounted in a ...
0
votes
1
answer
66
views
Why should we map the node_modules to volumes when dockerize node app [duplicate]
I wonder why mapping the node_module to it own volume considered as a best practice for some people. here's the sample docker compose
services:
app:
...:
...: ...
volumes:
- ./:/...
1
vote
1
answer
53
views
Docker nodemon doesn't hot reload even though the volumes has been set up
So I have a simple node js app that I want to dockerize.
const express = require("express");
const app = express();
const port = process.env.PORT || 8080;
app.get("/", (req, res) =...
0
votes
0
answers
98
views
Container (podman/docker) volume nfs from window
On window i have a network drive A: which map \company.local\PARTAGE
I tried to do a NFS mount to create a volume for my container.
First i have created a volume:
podman volume create --driver local --...
0
votes
0
answers
96
views
Nuxt public folder as binded mount docker volume
I deploy a Nuxt 3 app and I need to serve static files (external from the git repo) by public folder.
To do that I bind a docker volume like this :
volumes:
- "${MEDIA_DIR}/music:/app/....
0
votes
0
answers
20
views
Volume Synchronization Issue Between Jenkins Container and Docker Containers Launched from a Pipeline
I have a Jenkins container defined in a docker-compose.yml file as follows:
jenkins:
image: jenkins/jenkins:lts
...
volumes:
- /srv/jenkins_workspace:/var/jenkins_home/workspace
- /usr/...
0
votes
0
answers
101
views
Owner uid mapping for files in mounted directory in docker
On Linux I want to run my program in docker container and have 1 directory bound (mounted?) read-write between host and container. Further I want the program running in container run as a normal user. ...
1
vote
1
answer
88
views
Nodemon not restarting NodeJS server in Docker
I'm trying to dockerize a NodeJS Express server with Typescript and I can't make nodemon restart my app on changes. I have found several other questions about this problem on StackOverflow, but none ...
0
votes
0
answers
15
views
Docker: volume defined in dockerfile [duplicate]
I am reading about volumes in docker, and am a bit confused.
One way we work with them is by creating a volume and then running a container using it:
docker volume create data_volume
docker run -v ...
0
votes
1
answer
101
views
How do i map a volume to replace the standard index.html of a nginx container
I'm trying to make a simple map of a volume inside an nginx container for study purposes. To make it i created an index.html like this:
<html>
<head>
<title>TEST</title>
...
0
votes
0
answers
110
views
docker-compose: how to prevent volume binding to host from syncing two copies of data?
docker-compose: volume binding to host sync two copies of data. e.g.,
services:
tomcat:
image: tomcat:latest
volumes:
- myapp_data:/opt/myapp/data
volumes:
myapp_data:
driver: ...
0
votes
1
answer
78
views
Azure docker container can only read azure file share volume mount when public access is on
I have an azure Docker container running nginx. It has an azure file share mounted as a volume. It all works well until I set network settings to "Enabled from selected virtual networks and IP ...
0
votes
1
answer
55
views
Docker creating hundreds of volumes that cannot be pruned
We have an Ubuntu server that runs a few test environments under Docker. The system ran out of space today, and I eventually found that /var/lib/docker had grown to 826 GB with /var/lib/docker/volumes ...
0
votes
1
answer
232
views
Change nginx.conf file in docker-compose
I want to change nginx.conf file but its file made with docker-compose.yml file.
<br>Its file use from alfg/nginx-rtmp image. my docker-compose file:
version: '3.7'
services:
rtmp:
image: ...
0
votes
1
answer
51
views
will it possible to make docker mount with variable path or fix path is required?
Currently I am mounting https certificate for docker/container with below Windows machine path 'C:\Users\user.aspnet`.
volumes:
- ~/.aspnet/https:/app/certs:ro
I want to change the location of and ...
0
votes
0
answers
74
views
how to run docker container with external volume
I want to run a container that I started with Docker Compose from the command line in the following figure.
Since the container started with docker compose gives a database error, I want to reach the ...
1
vote
1
answer
228
views
How to access local(backup) file from Pgadmin(Postgres editor) that is running in a docker container to populate my database
I am in the process of migrating all the database records from my docker Postgres environment. I am new to docker and volumes. I have a backup SQL file of Postgres in my local system. How do I access ...
0
votes
0
answers
60
views
How to get diagnostic information through dotnet monitor endpoints. dotnet monitor and testapp pods have different namespaces, mounted to host volume
I have to fetch diagnostic information by triggering dotnet monitor endpoints for some pods containing dotnet applications. Both dotnet monitor and dotnet applications pod are running in separate pod. ...
0
votes
1
answer
155
views
How to Copy or mount files from docker volume file system to another container during run time
I have copied a directory to docker volume space (/var/lib/docker/volumes/<volume_name) using shutil.copytree from a path during run time.
shutil.copytree(env["directoy_files"], ...
0
votes
0
answers
33
views
Laravel 10 docker volume permission issue
I am running Laravel 10 in docker with volume on AMI Linux 2 server.
Everything is working fine.
However, when I am making syntax error in PHP, the Laravel cannot display the formatted error page.
(...
1
vote
1
answer
424
views
Docker Volume mount hiding files?
I have a simple Dockerfile, and I am using the VSCode Docker extension to debug my code.
I see the container is created with a volume mount
--mount "type=bind,source=C:\Users\james\source\repos\...
0
votes
0
answers
73
views
Docker volume is not reflecting changes
I am just learing docker and practising using simple project.
code:
const express= require("express");
const app=express();
const PORT=3000;
app.get("/",function(req,res){
return res.send("...
0
votes
0
answers
60
views
Docker stuck in starting
I need to write a Makefile that launches a docker-compose.yml file, which builds and runs nginx, WordPress, and MariaDB images for which I have written my own Dockerfiles. Everything works fine, but ...
0
votes
0
answers
43
views
Docker D:// external drive volume mounting
I'm trying to run a very simple docker-compose using some paths into my external D: drive for volumes on Windows 11:
services:
radarr:
image: lscr.io/linuxserver/radarr:latest
container_name:...
0
votes
0
answers
36
views
How to add docker-volume to docker-compose in a project?
I have an API written in Rust with a PostgreSQL database. I store project data in docker containers, using docker-compose I run it. There was a need to use docker-volume but I do not quite understand ...
1
vote
0
answers
70
views
create a "bind" mount once and reuse in multiple container
I need to start multiple container on my developer machine and mount a folder on host machine to all containers.
we know that we can create volumes at once and reuse them in multiple mount commands as ...