Skip to content

Instantly share code, notes, and snippets.

@JohannesBertens
Created December 17, 2016 15:36
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 JohannesBertens/1601d974c4d6534fe556311af15eb6bb to your computer and use it in GitHub Desktop.
Save JohannesBertens/1601d974c4d6534fe556311af15eb6bb to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo docker pull djbnjack/metricbeat
sudo docker rm mb --force
sudo docker run --restart=always -d --pid=host --volume=/proc:/hostfs/proc:ro --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro --volume=/:/hostfs:ro --net=host --name=mb djbnjack/metricbeat
@JohannesBertens
Copy link
Author

Execute with:

wget -O - https://gist.githubusercontent.com/DJBnjack/1601d974c4d6534fe556311af15eb6bb/raw/d38d02dc83b56e1e07dbf43a08e3d92da330617a/refresh-metricbeat.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment