Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove trailing slash from Docker volume targets #45

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/source/sections/troubleshooting/containers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ DevDNS can't get IPs of containers

This error occurs when DevDNS gets a notification of a container in another network.
You can set the network in which DevDNS works with the environment variable `NETWORK=docker-migrid_default` for example.


Docker Compose complains about volume paths
-------------------------------------------

::

Error response from daemon: invalid mount config for type "bind": invalid mount path: 'docker-migrid_httpd' mount path must be absolute

This error message happens when Docker Compose V2 is used and a target path in one of the volumes contains a **trailing slash**
10 changes: 5 additions & 5 deletions docker-compose_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -113,7 +113,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -151,7 +151,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -194,7 +194,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -236,7 +236,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down
10 changes: 5 additions & 5 deletions docker-compose_development_gdp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -112,7 +112,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -150,7 +150,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -188,7 +188,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -225,7 +225,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down
10 changes: 5 additions & 5 deletions docker-compose_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -84,7 +84,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -119,7 +119,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -158,7 +158,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down Expand Up @@ -197,7 +197,7 @@ services:
volumes:
- type: volume
source: httpd
target: /etc/httpd/
target: /etc/httpd
- type: volume
source: mig
target: /home/mig/mig
Expand Down
Loading