diff --git a/actions/setup/action.yml b/actions/setup/action.yml index 289224181..fe53c847c 100644 --- a/actions/setup/action.yml +++ b/actions/setup/action.yml @@ -84,7 +84,7 @@ runs: # Configure DockerHub mirror tmp=$(mktemp) if [ ! -f /etc/docker/daemon.json ]; then - echo '{}' > /etc/docker/daemon.json + echo '{}' | sudo tee /etc/docker/daemon.json fi jq '."registry-mirrors" = ["https://mirror.gcr.io"]' /etc/docker/daemon.json > "$tmp" sudo mv "$tmp" /etc/docker/daemon.json