BUG: docker-compose tries to bind mount folders from root machine #157
Labels
bug
Something isn't working
design needed
Design details needed to complete the issue
enhancement
New feature or request
Describe the bug
docker compose up
fails with the following error when I run it on my local machine:The error is caused by the
nginx
service. I can reproduce it withdocker compose up nginx
as well. There isn't any additional information in the log:I tested with v5.1.0 and latest
main
branch (956a807). I'm seeing the same error for both.Investigation
DejaCode's Docker Compose setup bind mounts to paths on the machine hosting the containers: https://github.com/nexB/dejacode/blob/956a80790d41a3cf44a51869a9b1eadca55fc2ac/docker-compose.yml#L74
On my machine the folder
/var/www
does not exist. The user under which docker runs doesn't seem having permissions to create it.To Reproduce
Ensure that user under which docker runs does not have access permissions writing to
/var/www
.git clone git@github.com:nexB/dejacode.git
git checkout v5.1.0
docker compose build
docker compose up
Expected behavior
docker compose up
should start DejaCode as long as the machine has a working Docker setup. It should not rely on the machine's file system.Screenshots
n.a.
Context (OS, Browser, Device, etc.):
The text was updated successfully, but these errors were encountered: