Skip to content

Instantly share code, notes, and snippets.

@lgg
Last active March 21, 2022 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgg/f76d0124784b62baffac6ffbbb065e60 to your computer and use it in GitHub Desktop.
Save lgg/f76d0124784b62baffac6ffbbb065e60 to your computer and use it in GitHub Desktop.
Nvidia GPU Monitoring with Netdata in docker
version: '3.3'
services:
netdata:
# uncomment below to disable container startup
#profiles:
# - donotstart
container_name: netdata
#image: netdata/netdata
image: d34dc3n73r/netdata-glibc # With GPU Support
runtime: nvidia # or change default-runtime to nvidia
restart: unless-stopped
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
ports:
- '19999:19999'
volumes:
#- './netdataconfig:/etc/netdata'
#- './netdatalib:/var/lib/netdata'
#- './netdatacache:/var/cache/netdata'
- '/etc/passwd:/host/etc/passwd:ro'
- '/etc/group:/host/etc/group:ro'
- '/proc:/host/proc:ro'
- '/sys:/host/sys:ro'
- '/etc/os-release:/host/etc/os-release:ro'
environment:
- NVIDIA_VISIBLE_DEVICES=all
- DO_NOT_TRACK=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment