Questions tagged [docker-volume]

A docker data volume is a specially-designated directory within one or more containers that bypasses the Union File System.

Filter by
Sorted by
Tagged with
-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 ...
keboom's user avatar
  • 1
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 ...
Mustafa Tunahan Tuna's user avatar
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 ...
Stanislav Kosarev's user avatar
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: ...
Manthan's user avatar
  • 93
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:...
dodov's user avatar
  • 5,294
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 ...
J.Bon's user avatar
  • 27
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. ...
YasuoPlayer's user avatar
-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 ...
Amirsaman's user avatar
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 ...
YasuoPlayer's user avatar
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 ...
Karl's user avatar
  • 1,339
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: ...
DumbCoder's user avatar
  • 249
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 ...
Valentin's user avatar
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: ...
Daniele Repici's user avatar
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 ...
Parsa Loi's user avatar
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 ...
Tanner's user avatar
  • 11
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....
Destroy666's user avatar
  • 1,080
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 ...
A.A's user avatar
  • 3,260
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 ...
Jan's user avatar
  • 59
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 ...
Amako Yoko's user avatar
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 ...
Semere T.'s user avatar
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 ...
sebaopazo24's user avatar
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/...
pietrodito's user avatar
  • 1,871
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-...
proggaf's user avatar
  • 29
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 ...
lebolo's user avatar
  • 2,130
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 ...
teeeeee's user avatar
  • 705
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: - ./:/...
Amir's user avatar
  • 132
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) =...
Amir's user avatar
  • 132
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 --...
jeyzorus's user avatar
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/....
ricardo's user avatar
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/...
user60108's user avatar
  • 3,298
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. ...
MateuszL's user avatar
  • 2,771
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 ...
Alexxino's user avatar
  • 669
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 ...
Mandroid's user avatar
  • 6,416
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> ...
lucas menezes's user avatar
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: ...
eastwater's user avatar
  • 4,802
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 ...
ibeme99's user avatar
  • 21
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 ...
not2savvy's user avatar
  • 3,110
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: ...
Haj-Rezvan's user avatar
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 ...
user584018's user avatar
  • 10.5k
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 ...
erhan's user avatar
  • 79
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 ...
Nithin_Kamineni's user avatar
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. ...
Sweta Singh's user avatar
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"], ...
Kumar's user avatar
  • 131
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. (...
Wai Phyo San Tin's user avatar
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\...
James Hatton's user avatar
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("...
justMe's user avatar
  • 1
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 ...
Noah's user avatar
  • 1
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:...
chocojunkie's user avatar
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 ...
AFINS's user avatar
  • 1
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 ...
ThrowableException's user avatar

1
2 3 4 5
29