Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.17 KB

File metadata and controls

35 lines (27 loc) · 1.17 KB

Creating a pull secret for your mirror registry

In a restricted network, you create a pull secret that contains only the information for your registry.

Prerequisites
  • You configured a mirror registry to use in your restricted network and have its domain name and port as well as credentials for it.

Procedure
  1. On the bastion host, generate the pull secret for your registry:

    $ podman login --authfile ~/pullsecret_config.json <local_registry_host_name>:<local_registry_host_port> (1)
    1. For <local_registry_host_name>, specify the registry domain name for your mirror registry, such as registry.example.com. For <local_registry_host_port>, specify the port that your mirror registry uses to serve content.

      Provide your credentials for the mirror registry at the prompts.

  2. View the pull secret that you created:

    # cat ~/pullsecret_config.json
    
    { "auths": { "<local_registry_host_name>:<local_registry_host_port>": { "auth": "ZHVtbXk6ZHVtbXk=" } } }