This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# shellcheck shell=dash | |
# This script should run in all POSIX environments and Dash is POSIX compliant. | |
# | |
# grafanacloud-install.sh installs the Grafana Agent on supported | |
# Linux systems for Grafana Cloud users. Those who aren't users of Grafana Cloud | |
# or need to install the Agent on a different architecture or platform should | |
# try another installation method. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dockerips() { | |
docker ps -q | xargs -n 1 docker inspect --format '{{ .Name }} => {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' | sed 's/ \// /' | |
} |