Skip to content

Commit 28b25be

Browse files
committed
docker-compose: fix open /tmp: operation not supported error
Workaround for issue #2009 suggested in docker/compose#1339 (comment)
1 parent 8186158 commit 28b25be

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docker-compose.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ x-anchors:
3333
- /etc/clair/${CLAIR_CONFIG:-config.yaml}
3434
restart: unless-stopped
3535
working_dir: /src/cmd/clair
36+
tmpfs:
37+
- /tmp:exec,mode=1777
3638

3739
services:
3840
indexer:
@@ -145,6 +147,7 @@ services:
145147
container_name: clair-notifier
146148
profiles:
147149
- notifier
150+
- quay
148151
environment:
149152
CLAIR_MODE: "notifier"
150153
NOTIFIER_TEST_MODE: "true"
@@ -197,13 +200,6 @@ services:
197200
profiles:
198201
- quay
199202
image: *redis-image
200-
quay-notifier:
201-
<<: *notifier
202-
container_name: clair-notifier-quay
203-
profiles:
204-
- quay
205-
environment:
206-
CLAIR_MODE: "notifier"
207203
skopeo:
208204
container_name: quay-skopeo
209205
profiles:

0 commit comments

Comments
 (0)