From 29a090fdc998bba996ca05f87a16f9865511f9da 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 77b6b160c4..d20c1f0bc4 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 e3af1f6df3..b140a5b052 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