From 9c0f9da86aeb441ec69cbb9e20bd8bdb71d81a81 Mon Sep 17 00:00:00 2001 From: Davide Principi Date: Mon, 18 Nov 2024 14:41:21 +0100 Subject: [PATCH] Fix docker.io rate limit workaround procedure The runagent command fails if Traefik installation was aborted for docker.io rate limit. Use "--authfile" option as alternative to runagent with REGISTRY_AUTH_FILE environment variable. Ensure the /etc/nethserver directory was created with the correct permissions. --- dockerhub.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dockerhub.rst b/dockerhub.rst index be124c44..3ded2b2e 100644 --- a/dockerhub.rst +++ b/dockerhub.rst @@ -18,7 +18,7 @@ In a root shell prompt, execute the following command: .. code-block:: shell - runagent podman login docker.io + podman --authfile=/etc/nethserver/registry.json login docker.io This command prompts for Docker Hub credentials. It's advisable to generate a read-only access token specifically for the NS8 system. @@ -27,10 +27,11 @@ Refer to the Docker Hub documentation for guidance on generating tokens. The access token returned by docker.io is stored in the ``/etc/nethserver/registry.json`` file. Make sure the file remains world-readable, as it's required by NS8 modules. -To adjust the permissions accordingly, run the command: +To adjust the permissions accordingly, run the commands: .. code-block:: shell + chmod -c a+rx /etc/nethserver chmod -c a+r /etc/nethserver/registry.json Repeat this process for every node within the cluster.