readme
This commit is contained in:
@@ -21,7 +21,7 @@ Various tools to monitor Docker containers
|
||||
|
||||
## Setup
|
||||
|
||||
Set the DOCKER_GUID so the container has permission to access the socket
|
||||
Set the `DOCKER_GUID` so the container has permission to access the socket. This ensures that the telegraf container will have read access on the Docker socket.
|
||||
|
||||
```shell
|
||||
export DOCKER_GUID=$(getent group docker | awk -F ':' '{print $3}')
|
||||
|
||||
@@ -3,7 +3,7 @@ services:
|
||||
telegraf-docker:
|
||||
image: telegraf
|
||||
restart: unless-stopped
|
||||
user: root:$DOCKER_GUID
|
||||
user: root:${DOCKER_GUID}
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user