docker build -t build-netdata . --no-cache=true
docker run build-netdata:latest
docker cp $(docker ps -a | grep "build-netdata:latest" | cut -d " " -f1):/opt/netdata .
docker rm $(docker ps -a | grep "build-netdata:latest" | cut -d " " -f1)
docker rmi build-netdata:latest
tar czf netdata.tgz netdata/
scp netdata.tgz user@server:
rm -rf netdata*
sudo addgroup --system --gid 999 netdata
sudo adduser --system --uid 999 --gid 999 --no-create-home --shell /usr/sbin/nologin netdata
sudo usermod -G adm netdata
tar xzf netdata.tgz
sudo mv netdata /opt/
sudo chown -R root:root /opt/netdata
sudo chown -R netdata:netdata /opt/netdata/var/cache/netdata /opt/netdata/var/lib/netdata /opt/netdata/var/log/netdata /opt/netdata/etc/netdata /opt/netdata/usr/share/netdata/web
sudo cp /opt/netdata/etc/netdata.service /etc/systemd/system/
sudo systemctl enable netdata
sudo systemctl start netdata