docker-volume Questions

3

Solved

I'm attempting to update the sebp/elk Logstash configuration following the documentation here. I'm running into a situation in which the host file that I am attempting to mount is being mounted as ...
Tenstrike asked 8/1, 2018 at 23:19

3

Solved

I am currently trying to use redmine with a postgres database but I'm running into some issues when setting up the environment. Lets say I have the following compose file db-redmine: image: 'bitn...
Allethrin asked 2/7, 2021 at 18:19

2

I have Docker installed on my Windows OS. There is my volumes filed of docker-compose.yml: volumes: - "/var/run/docker.sock:/var/run/docker.sock" I just can't figure out how /var/run/docker.soc...

1

This dockerfile works as expected. But the problem is that I am not able to change the source of volume. version: "3.5" services: mysql: environment: MYSQL_ROOT_PASSWORD: india3391 image: shan...
Myrica asked 23/6, 2018 at 6:13

4

Solved

I have a swarm cluster with one manager and another normal node , when I create a swarm service I am creating with mount type ,mount source and mount target . It creates the volume with the same na...
Batts asked 24/11, 2016 at 18:11

3

Solved

So I have this remote folder /mnt/shared mounted with fuse. It is mostly available, except there shall be some disconnections from time to time. The actual mounted folder /mnt/shared becomes avail...
Trifurcate asked 5/5, 2020 at 11:40

5

Solved

I have created a docker volume "hello" and it contains some data . How can I copy the data to host ? First : kerydeMacBook-Pro:~ hu$ docker volume create --name hello hello checking : ke...
Bistre asked 15/2, 2016 at 9:55

5

Solved

I use docker run -it -v /xx1 -v /xx2 [image] /bin/bash to create a container. Then commit to image and push to docker hub. use docker inspect [image] The Volumes detail is "Volumes": { "/xx1":...
Argile asked 20/9, 2016 at 8:18

3

Solved

I have docker-compose.yml like this: version: '3' services: mysql: image: mysql volumes: - data:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=$ROOT_PASSWORD volumes: data: And my mou...
Recalesce asked 4/6, 2017 at 20:9

2

Solved

My understanding is docker volume prune should delete volumes which are no longer associated with containers. Locally I have $ docker volume ls | head -n 2 DRIVER VOLUME NAME local 0d4cd922a4ed3e97...
Muskogee asked 18/2, 2023 at 13:39

6

Solved

I am trying to run my application using Docker and here is my yml file content to run the mongo container. services: mongodb: image: mongo:3.4 # ports: # - "27017:27017" volumes: -...
Aam asked 12/5, 2021 at 7:12

2

Solved

How to create a local-registry container that mounts a volume from the host machine and persist locally all the images that get pulled? Local Docker registry with persisted images It should be p...
Titanomachy asked 9/4, 2021 at 21:28

5

Solved

I've seen Docker volume definitions in docker-compose.yml files like so: -v /path/on/host/modules:/var/www/html/modules I noticed that Drupal's official image, their docker-compose.yml file is u...
Ecumenicity asked 7/7, 2017 at 17:25

6

Solved

My docker compose file has three containers, web, nginx, and postgres. Postgres looks like this: postgres: container_name: postgres restart: always image: postgres:latest volumes: - ./database...
Jackass asked 13/1, 2017 at 15:2

2

Solved

I have an NX monorepo with 2 apps: Shop Landing I wish to use docker-compose to run my entire environment with eventually some APIs and a database etc etc. I created a docker-file that takes argu...
Maitland asked 3/4, 2021 at 21:1

3

Solved

I'm trying to use docker-compose to volume my php.ini file so I can make changes on the fly on my local machine to see how it affects the host machine. Unfortunately the only way I've been able to ...
Sporades asked 17/1, 2017 at 7:47

2

Solved

I am using Docker Compose to run several containers, including one with a Postgres image. I am attempting to add a volume to that container to persist my data across container builds. However, I am...
Birthstone asked 10/11, 2017 at 2:11

3

Solved

I'm just trying out WSL 2 with Docker for Windows and I'm having an issues with mounted volumes : version: "3.7" services: node: build: . container_name: node hostname: node volumes...

5

If I run composer install from my host, I hit my local composer cache: - Installing deft/iso3166-utility (1.0.0) Loading from cache Yet when building a container having in its Dockerfile: RUN...
Auston asked 18/8, 2016 at 16:52

6

Solved

The Container keeps restarting. I tried docker-compose down -v docker volume rm The container was working fine earlier. Logs 2021-03-27 13:16:08+00:00 [Note] [Entrypoint]: Entrypoint script fo...
Oceanography asked 27/3, 2021 at 13:29

4

Solved

I want to add the bind mount to docker file just like I initialise a volume inside Dockefile. Is there any way for it?
Legging asked 22/12, 2017 at 13:2

1

I'm unable to write to a mounted volume when in my container (through ssh) without sudo permissions. The mounted folder is host user's home folder at the host. I'm running a rootless docker daemon....
Duchamp asked 25/5, 2021 at 21:17

6

Solved

I'm aware of docker volume ls and docker inspect -s, but the former doesn't show size info and the latter, even though it has a --size option, ignores it for volumes. Is there something I'm missin...
Paw asked 9/8, 2019 at 13:5

4

Solved

How to list all docker volumes together with their respective size. docker volume inspect $(docker volume ls) gives information about all volumes but each volume's size. Preferably, I'd like to...
Lesko asked 7/6, 2020 at 13:1

1

I'm learning Docker and I'm facing the following issue, mainly related to sharing files between services. I've prepared an illustration: I have 3 stages in my Dockerfile: builder, php and caddy. M...
Nickeliferous asked 19/5, 2023 at 13:40

© 2022 - 2024 — McMap. All rights reserved.