Optional: Using image pull secrets

Configure a pull secret on the device when your operating system or application container images come from a private repository.

About this task

If your device relies on containers from a private repository, you must configure a pull secret for the registry. Complete the following steps:

Procedure

  1. Depending on the kind of container image you use, place the pull secret in one or both of the following system paths on the device:
    • Operating system images use the /etc/ostree/auth.json path.
    • Application container images use the /root/.config/containers/auth.json path.
    Important

    The pull secret must exist on the device before the secret can be consumed.

  2. Ensure that the pull secrets have the following format:
    {
      "auths": {
        "registry.example.com": {
          "auth": "base64-encoded-credentials"
        }
      }
    }

    For more information, see the Additional resources section.