docker-volume Questions
2
Solved
I'm developing a Wordpress theme, and want to use Docker in my dev setup. What I've done is pretty simple:
create a database service running MySQL 5.7
create a wordpress service, where I mount my...
Conversazione asked 24/4, 2019 at 8:22
4
Solved
I have the following docker-compose file:
version: "3"
services:
#
# APIs
#----------------------------------------------
pokerstats:
image: pokerstats
container_name: pokerstats
ports:
...
Decortication asked 10/4, 2020 at 19:23
6
docker-compose.yml
services:
idprovider-app:
container_name: idprovider-app
build:
dockerfile: Dockerfile
context: .
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
volumes:
-...
Florentinoflorenza asked 11/12, 2019 at 4:34
2
Solved
I am writing a docker-compose.yaml file for my project. I have checked the volumes documentation here .
I also understand the concept of volume in docker that I can mount a volume e.g. -v my-data/:...
Chondriosome asked 4/8, 2021 at 7:39
2
I'm quite new to Docker. I'm running on Windows 10 Enterprise and am trying to containerize an existing app that runs on windows (so it's a Windows container). I don't know if this matters but the ...
Jilly asked 20/1, 2021 at 2:5
3
Solved
I'm trying to start a Nginx container that serve static content located on the host, in /opt/content.
The container is started with :
docker run -p 8080:80 -v /opt/content:/usr/share/nginx/html ...
Dozen asked 15/8, 2018 at 8:15
2
Solved
I have a docker compose file for a website, which amongst a bunch of other containers for various purposes, includes a mysql database that will have persistent data. At the moment the compose file ...
Randa asked 24/10, 2017 at 9:59
2
As per documentation Docker volumes are advertised this way:
Volumes are the preferred mechanism for persisting data generated by and used by Docker containers. While bind mounts are dependent on ...
Unmade asked 20/7, 2022 at 14:23
4
Solved
Suppose I have a volume and I know its name or id.
I want to determine the list of containers (their names or ids) that use the volume.
What commands can I use to retrieve this information?
I th...
Israel asked 17/3, 2017 at 12:27
3
Solved
I wanted to translate this docker CLI command (from smallstep/step-ca) into a docker-compose.yml file to run with docker compose (version 2):
docker run -d -v step:/home/step \
-p 9000:9000 \
-e ...
Heatherheatherly asked 6/11, 2021 at 19:18
3
Solved
I am trying to mount a network drive as a volume. This is the command I am trying
docker run -v //NetworkDirectory/Folder:/data alpine ls /data
I am running this command on windows and the data ...
Currey asked 8/5, 2018 at 17:39
6
Solved
Is there a recommended way to use Kubernetes Secrets? They can be exposed as environment variables or using a volume mount. Is one more secure than the other?
Depilate asked 16/7, 2018 at 15:29
8
Solved
I have a development environment I'm dockerizing and I would like the ability to livereload my changes without having to rebuild docker images. I'm using docker compose because redis is one of my a...
Slaw asked 1/12, 2016 at 8:25
17
Solved
When using docker images from registries, I often need to see the volumes created by the image's containers.
Note: I'm using docker version 1.3.2 on Red Hat 7.
Example
The postgres official imag...
Abercrombie asked 8/5, 2015 at 22:18
2
Solved
I have question regarding volumes and ownership.
As an example I'm using this image: privatebin, but this is the same for any case.
First I'm creating volume:
$ docker volume create privatebin-d...
Caston asked 4/12, 2018 at 21:39
7
Solved
I used a docker image to run a program on our school's server using this command.
docker run -t -i -v /target/new_directory 990210oliver/mycc.docker:v1 /bin/bash
After I ran it it created a fir...
Afflux asked 23/2, 2017 at 18:58
1
I have been frustrated by this issue for a while because this has been asked multiple times here, such as in How to deal with persistent storage (e.g. databases) in Docker and What is the (best) wa...
Tate asked 26/8, 2020 at 16:49
3
Solved
I have a problem with creating new files in mounted docker volume.
Firstly after installation docker i added my user to docker group.
sudo usermod -aG docker $USER
Created as my $USER folder:
...
Quill asked 9/11, 2017 at 8:51
2
Solved
Any help from any source is appreciated.
Server has a Docker container with alpine, nginx, php. This container is able to write in bind mounted host directory, only when I set "chown -R nobody...
Janie asked 19/4, 2022 at 1:30
3
Solved
TLDR
In docker-compose, what's the difference between
volumes:
- type: volume
source: mydata
target: /data
and
volumes:
- type: bind
source: mydata
target: /data
?
The question in long:
Whe...
Tomato asked 26/3, 2019 at 21:22
3
I'm not sure if I have a configuration error or I just don't know where to look but I can't seem to find where my files are being stored with these configurations
apiVersion: v1
kind: PersistentVol...
Chenoweth asked 12/6, 2021 at 17:29
2
Solved
Is it considered a secure practice to run root privileged ENTRYPOINT ["/bin/sh", entrypoint.sh"], that later switches to non-root user before running the application?
More context:
...
Sharpnosed asked 5/1, 2021 at 6:49
2
Solved
I am logged in in my PC (Fedora 24) as rperez. I have setup Docker for being able to run through this user, so I am running a container as follow:
$ docker run -d \
-it \
-e HOST_IP=192.168.1.66...
Johnny asked 30/9, 2016 at 15:13
4
Solved
I have tests that runs lots of docker containers. each of them has a volume.
How can I know the volume name that I need to delete?
for example:
~ docker run -d registry:2
~ docker volume inspect c...
Jacy asked 14/8, 2020 at 11:41
0
I have a docker-compose that was working for a long time and suddenly stopped. I am getting: failed to mount local volume, no such file or directory
This was working for months and started giving t...
Philibeg asked 11/1, 2022 at 17:41
© 2022 - 2024 — McMap. All rights reserved.