From d8497d30120b45710f762216ec70c634ef9ff1ab Mon Sep 17 00:00:00 2001 From: YuitoAkatsuki Date: Wed, 31 Jul 2024 20:08:22 +0900 Subject: [PATCH] =?UTF-8?q?=E6=88=BB=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-push.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-push.yaml b/.github/workflows/docker-push.yaml index 3cd3071..94eda14 100644 --- a/.github/workflows/docker-push.yaml +++ b/.github/workflows/docker-push.yaml @@ -13,19 +13,21 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - with: - install: true - - name: Enable Docker Insecure Registry + - name: enable run: | - sudo mkdir -p /etc/docker - echo '{"insecure-registries": ["${{ secrets.K8S_DOCKER_REGISTHOST }}"], "max-concurrent-uploads": 1, "debug": true}' | sudo tee /etc/docker/daemon.json - sudo systemctl restart docker - sudo systemctl status docker + SW_JSON="" + SW_JSON="$(sudo cat /etc/docker/daemon.json | jq '.+{ "insecure-registries":["${{ secrets.K8S_DOCKER_REGISTHOST }}"],"max-concurrent-uploads": 1,"debug":true }')" + echo "${SW_JSON}" | sudo bash -c 'cat -- > /etc/docker/daemon.json' + sudo cat /etc/docker/daemon.json + sudo systemctl restart docker || sudo journalctl -xeu docker.service + echo --- docker info + echo --- docker image ls + echo --- + sudo systemctl status docker shell: bash - - name: Check Docker status run: | export DOCKER_CLIENT_TIMEOUT=9000