From a1cfe470c6c1e412865b351e473060b66674b2fb Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Mon, 7 Oct 2024 09:14:17 +0200 Subject: [PATCH] fix: mount host filesystem as bind rslave mount (#1728) * fix: mount host filesystem as bind rslave mount * chore: add changelog entry --------- Co-authored-by: Juliano Costa --- CHANGELOG.md | 2 ++ docker-compose.minimal.yml | 2 +- docker-compose.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0906b9a361..0256ebf0cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ the release. * [accountingservice] bump OpenTelemetry .NET Automatic Instrumentation to 1.8.0 together with other dependencies ([#1727](https://github.com/open-telemetry/opentelemetry-demo/pull/1727)) +* [chore] Fix binding for host's volume mount + ([#1728](https://github.com/open-telemetry/opentelemetry-demo/pull/1728)) ## 1.11.1 diff --git a/docker-compose.minimal.yml b/docker-compose.minimal.yml index f10ad9470a..68fe04d93e 100644 --- a/docker-compose.minimal.yml +++ b/docker-compose.minimal.yml @@ -585,7 +585,7 @@ services: command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] user: 0:0 volumes: - - ${HOST_FILESYSTEM}:/hostfs:ro + - ${HOST_FILESYSTEM}:/hostfs:ro,rslave - ${DOCKER_SOCK}:/var/run/docker.sock:ro - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml diff --git a/docker-compose.yml b/docker-compose.yml index ab38c239ae..33358b6f4a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -696,7 +696,7 @@ services: command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml" ] user: 0:0 volumes: - - ${HOST_FILESYSTEM}:/hostfs:ro + - ${HOST_FILESYSTEM}:/hostfs:ro,rslave - ${DOCKER_SOCK}:/var/run/docker.sock:ro - ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml - ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml