Skip to content

Commit

Permalink
docker-compose: fix open /tmp: operation not supported error
Browse files Browse the repository at this point in the history
Workaround for issue #2009
suggested in docker/compose#1339 (comment)
  • Loading branch information
perat committed Mar 14, 2024
1 parent 8186158 commit 28b25be
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -145,6 +147,7 @@ services:
container_name: clair-notifier
profiles:
- notifier
- quay
environment:
CLAIR_MODE: "notifier"
NOTIFIER_TEST_MODE: "true"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 28b25be

Please sign in to comment.