You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
command -v docker >/dev/null 2>&1 || { echo >&2 "'docker' is required but not installed. See https://github.com/shardeum/validator-dashboard?tab=readme-ov-file#how-to-install-and-run-a-shardeum-validator-node for details."; exit 1; }
if command -v docker-compose &>/dev/null; then
echo "docker-compose is installed on this machine"
elif docker --help | grep -q "compose"; then
echo "docker compose subcommand is installed on this machine"
else
echo "docker-compose or docker compose is not installed on this machine"
exit 1
fi
docker-safe() {
if ! command -v docker &>/dev/null; then
echo "docker is not installed on this machine"
exit 1
fi
if ! docker $@; then
echo "Trying again with sudo..."
sudo docker $@
fi
}
echo "Updating validator image and rebuilding docker..."