Update docker FAQ (#7868)

This commit is contained in:
Daniel Nelson 2020-07-21 11:54:39 -07:00 committed by GitHub
parent 9f6b7092f2
commit 5efce718e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 13 deletions

View File

@ -5,19 +5,14 @@
You will need to setup several volume mounts as well as some environment You will need to setup several volume mounts as well as some environment
variables: variables:
``` ```
docker run --name telegraf docker run --name telegraf \
-v /:/hostfs:ro -v /:/hostfs:ro \
-v /etc:/hostfs/etc:ro -e HOST_ETC=/hostfs/etc \
-v /proc:/hostfs/proc:ro -e HOST_PROC=/hostfs/proc \
-v /sys:/hostfs/sys:ro -e HOST_SYS=/hostfs/sys \
-v /var:/hostfs/var:ro -e HOST_VAR=/hostfs/var \
-v /run:/hostfs/run:ro -e HOST_RUN=/hostfs/run \
-e HOST_ETC=/hostfs/etc -e HOST_MOUNT_PREFIX=/hostfs \
-e HOST_PROC=/hostfs/proc
-e HOST_SYS=/hostfs/sys
-e HOST_VAR=/hostfs/var
-e HOST_RUN=/hostfs/run
-e HOST_MOUNT_PREFIX=/hostfs
telegraf telegraf
``` ```