#!/bin/bash set -e . lib/common DOMAIN=$(relation-get domain) || exit 1 PROTO=$(relation-get protocol) || true PROTO=${PROTO:-https} echo "$PROTO://$DOMAIN" > $SERVICE_CONFIGSTORE/etc/docker-auth/realm