From 28b25be2113824f12db40d000d38c9e15a10f940 Mon Sep 17 00:00:00 2001 From: perat Date: Thu, 14 Mar 2024 16:38:13 +0100 Subject: [PATCH] docker-compose: fix `open /tmp: operation not supported` error Workaround for issue https://github.com/quay/clair/issues/2009 suggested in https://github.com/docker/compose/issues/1339#issuecomment-508730544 --- docker-compose.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 79cabaa9d6..f64628a2fd 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -33,6 +33,8 @@ x-anchors: - /etc/clair/${CLAIR_CONFIG:-config.yaml} restart: unless-stopped working_dir: /src/cmd/clair + tmpfs: + - /tmp:exec,mode=1777 services: indexer: @@ -145,6 +147,7 @@ services: container_name: clair-notifier profiles: - notifier + - quay environment: CLAIR_MODE: "notifier" NOTIFIER_TEST_MODE: "true" @@ -197,13 +200,6 @@ services: profiles: - quay image: *redis-image - quay-notifier: - <<: *notifier - container_name: clair-notifier-quay - profiles: - - quay - environment: - CLAIR_MODE: "notifier" skopeo: container_name: quay-skopeo profiles: