Skip to content

Commit

Permalink
Fix docker.io rate limit workaround procedure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DavidePrincipi committed Nov 18, 2024
1 parent c57e2df commit 9c0f9da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dockerhub.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 9c0f9da

Please sign in to comment.