From 819b074fb855206d286744beff9d52caee6b35ad Mon Sep 17 00:00:00 2001 From: Benedikt Braunger Date: Tue, 19 Mar 2024 16:24:12 +0100 Subject: [PATCH] removed trailing slash from httpd volume for compose V2 --- doc/source/sections/troubleshooting/containers.rst | 10 ++++++++++ docker-compose_development.yml | 10 +++++----- docker-compose_development_gdp.yml | 10 +++++----- docker-compose_production.yml | 10 +++++----- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/doc/source/sections/troubleshooting/containers.rst b/doc/source/sections/troubleshooting/containers.rst index 063098cf..bb9bbb51 100644 --- a/doc/source/sections/troubleshooting/containers.rst +++ b/doc/source/sections/troubleshooting/containers.rst @@ -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** diff --git a/docker-compose_development.yml b/docker-compose_development.yml index 487ab57b..2ec9b98b 100644 --- a/docker-compose_development.yml +++ b/docker-compose_development.yml @@ -65,7 +65,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -113,7 +113,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -151,7 +151,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -194,7 +194,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -236,7 +236,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig diff --git a/docker-compose_development_gdp.yml b/docker-compose_development_gdp.yml index 805f69b0..21b2d3a2 100644 --- a/docker-compose_development_gdp.yml +++ b/docker-compose_development_gdp.yml @@ -65,7 +65,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -112,7 +112,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -150,7 +150,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -188,7 +188,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -225,7 +225,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig diff --git a/docker-compose_production.yml b/docker-compose_production.yml index b76234e2..fb563e7a 100644 --- a/docker-compose_production.yml +++ b/docker-compose_production.yml @@ -42,7 +42,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -84,7 +84,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -119,7 +119,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -158,7 +158,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig @@ -197,7 +197,7 @@ services: volumes: - type: volume source: httpd - target: /etc/httpd/ + target: /etc/httpd - type: volume source: mig target: /home/mig/mig