Docker Add User for Telegraf as in the Influx Blog not working

Hi,

I have read the Influxdata Blog here:

To run Telegraf as non-root is more secure.

If i execute the command:
docker run --user telegraf:$(stat -c '%g' /var/run/docker.sock)

I get the Error:

docker: ‘docker run’ requires at least 1 argument

Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG…]

See ‘docker run --help’ for more information