All Questions
Tagged with docker-compose docker-volume
619
questions
0
votes
0
answers
42
views
Docker container can't access named volume [closed]
I'm spinning up a service with via docker compose and in it, create a named volume, only specifying the container path, not the host path. I'm not bind mounting an existing directory.
See my (...
0
votes
0
answers
16
views
Why my docker container does not see a NFS mountpoint defined as a volume?
I am setting up my Jellyfin server on docker.
I correctly mounted my NFS on /net_storage/media on my host machine, and I am able to see all the files.
Then, i created my docker compose file:
---
...
-1
votes
1
answer
54
views
Docker volume is cleared on every restart via docker-compose on ubuntu [closed]
Docker volume is cleared on every restart via docker-compose on ubuntu server, but on my pc everything works properly. Volume always contains data, even after restart. How to solve this? Thanks.
My ...
1
vote
0
answers
21
views
Unable to create file using Spark on Client Mode in airflow-spark-docker
Getting this error in airflow:
org.apache.spark.sql.delta.DeltaIOException: [DELTA_CANNOT_CREATE_LOG_PATH] Cannot create file:/opt/bitnami/spark/my_lakehouse/staging/customers/_delta_log
but if I ...
1
vote
2
answers
55
views
How can I get pre-existing data from a mysql database into a mysql docker container?
I am new to using Docker and I want to place an existing project in a set of Docker containers so I can run the project on other platforms/devices. I currently have a Flask app connected to a mysql ...
0
votes
0
answers
22
views
Docker Compose Watch populates <none> images [duplicate]
I'm writing an application using ASP.NET Core 8 and SQL Server.
I use docker-compose watch feature to rebuild my image every time there's a source code change
Here's my Dockerfile for .NET app
FROM ...
0
votes
0
answers
30
views
Docker bind mount or volume
I am trying to use docker compose to share a directory between my container and my host.
I understand that I cant use a normal bind mount, as bind mounts copy the directory from the host into the ...
0
votes
0
answers
21
views
Use a shared folder in the Compose
I want to create a docker container with a Dockerfile, Compose.yaml and a .env file. In the Dockerfile I create a image based on python, the Dockerfile:
FROM python:3
RUN mkdir -p /share_data/
COPY ...
1
vote
3
answers
135
views
Docker compose volume binding doesn't work on windows
I have created the below docker-compose file in my app:
version: '3.9'
services:
MongoDB:
...
backend:
...
frontend:
stdin_open: true
tty: true
build: ./frontend
image:...
0
votes
1
answer
107
views
Set volume owner / permission in docker compose
Minimal example of compose.yaml
services:
my_service:
image: alpine
volumes:
- my_vol:/my_vol
command: [sh, -c, 'adduser -S -s /bin/sh my_user && su - ...
0
votes
1
answer
78
views
Can docker compose volume create the entire path as non-root user?
I created a user with uid 1000 in the Dockerfile and created a directory /app, changing the owner of /app to uid 1000. Spring Boot also starts using the user with uid 1000.
RUN adduser --uid 1000 -D ...
0
votes
1
answer
66
views
Docker volumes not persisting data between container restarts in Docker Compose
I'm encountering an issue with Docker volumes not persisting data between container restarts when using Docker Compose. Here's a breakdown of my setup and the problem I'm facing:
Docker Compose ...
0
votes
0
answers
34
views
docker volume mapping file read only
I have a docker-compose file that maps a volume to the host.
When the mapping is a folder mapping I can write to the files in that folder from the container.
When I change the mapping to a specific ...
0
votes
0
answers
44
views
Rails log files in Docker volume are not being updated inside Docker container
I am trying to set up promtail as part of my docker-compose setup to collect my Rails logs.
The Rails app is running outside Docker, directly in the host machine through:
rails s
This is the promtail ...
0
votes
1
answer
44
views
Docker volume --mount command is not working
I am trying to create a docker volume of mongo that can be used even after a container is deleted. The volume works with the command
docker run -d --name mongo-local -p 27017:27017 -v mongo-local:/...