Skip to content

Commit 27d7404

Browse files
authored
support rootless docker in examples (#49)
1 parent 74575ce commit 27d7404

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/hasher/docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ services:
33
image: datadog/agent
44
volumes:
55
- '/var/run/docker.sock:/var/run/docker.sock:ro'
6+
- '/run/user:/run/user:ro'
67
- '/proc/:/host/proc/:ro'
78
- '/sys/fs/cgroup/:/host/sys/fs/cgroup:ro'
89
environment:
910
- DD_API_KEY
1011
- DD_APM_ENABLED=true
1112
- DD_LOG_LEVEL=ERROR
13+
- DOCKER_HOST
1214
ports:
1315
- 8126:8126

examples/http-server/docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ services:
4343
image: datadog/agent
4444
volumes:
4545
- '/var/run/docker.sock:/var/run/docker.sock:ro'
46+
- '/run/user:/run/user:ro'
4647
- '/proc/:/host/proc/:ro'
4748
- '/sys/fs/cgroup/:/host/sys/fs/cgroup:ro'
4849
environment:
4950
- DD_API_KEY
5051
- DD_APM_ENABLED=true
5152
- DD_LOG_LEVEL=ERROR
53+
- DOCKER_HOST

0 commit comments

Comments
 (0)