Skip to main content
Affected Versions: All Domino versions building Ubuntu-based compute environments

Issue

A compute environment build fails with a keyserver connection timeout similar to the following:
This typically occurs in environments where outbound access to keyserver infrastructure is restricted — for example, on-premises deployments, GovCloud environments, or deployments with strict egress ACLs.

Root Cause

The build is attempting to fetch the CRAN repository signing key from the Ubuntu keyserver (keyserver.ubuntu.com) using the HKP protocol (port 11371 or port 80). Egress rules or firewall policies in the deployment environment block this outbound connection, causing the GPG keyserver lookup to time out and the build to fail. Deprecated: The gpg … | apt-key add - pattern used in older Dockerfile instructions is deprecated as of Ubuntu 20.10 and removed in Ubuntu 24.04+. Even where it still functions, it should not be used in new or updated compute environments.

Resolution

The recommended fix is to bypass the keyserver entirely by fetching the CRAN signing key directly from CRAN’s own HTTPS endpoint at cloud.r-project.org. This avoids any dependency on HKP keyserver access and uses the modern gpg —dearmor approach. Add the following to your compute environment’s Dockerfile Instructions:
Tip: This approach works in any environment that allows outbound HTTPS to cloud.r-project.org — no keyserver port access required.

Fully Air-Gapped Environments

If your environment cannot reach any external endpoint during the build, the key must be pre-staged:
  1. On a machine with internet access, download the key:
  2. Upload the .asc file to your Domino project files.
  3. Reference the key file in your Dockerfile Instructions using the Domino project file access pattern, or embed the key as a base64-encoded string in your Dockerfile.
For detailed guidance on accessing project files during environment builds, see: Access Project Files During Docker Build An older workaround involved routing keyserver traffic through an HTTP proxy:
Not Recommended: This approach is no longer recommended because:
  • apt-key is deprecated since Ubuntu 20.10 and removed in Ubuntu 24.04+
  • It still requires keyserver connectivity even with a proxy
  • The direct CRAN HTTPS fetch described above is simpler and more reliable
Last modified on October 12, 2026