question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem using Nexus to proxy docker hub

See original GitHub issue

Describe the bug I am trying to setup nexus in the AzureTRE environment to proxy docker hub. I believe I have nexus setup correctly and appropriate docker hosts added the the firewall rules. When I try to run docker login from a VM running in a workspace shared service subnet I see error similar to what is described here. According to Sonatype docs docker needs to be exposed on a different port than the standard ssl port nexus is already running on. However nexus is running in an Azure App Service and I don’t see a way to expose custom ports. Steps to reproduce

  1. setup Nexus to proxy docker hub
  2. add *.docker.io and *.docker.com to firewall rules to allow nexus to access them
  3. create workspace and start vm in shared services subnet
  4. connect to vm using bastion and run docker login nexus-[tre_id].azurewebsites.net:[port]
  5. see timeout error

Acceptance criteria

  • #1479
  • #1480
  • #1481
  • Configure Docker Hub proxy in Nexus using a standalone port

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
marrobicommented, Mar 9, 2022

Scrap the multiple web app idea. The SSL certificate needs to be loaded into nexus - can’t do that with web apps as we don’t have access to the cert.

Could not configure HTTPS connector on port 5000 for docker repository dockerhub

Searching got me: “Docker registries are required to use HTTPS. This message means that you have not configured Jetty with a keystore from which it can load a TLS certificate for the Docker HTTPS connectors”

I see no option that to use a trusted SSL certificate, and in that case would run in docker on a VM/VMSS.

To get a trusted SSL, either

  1. Need to procure a wildcard cert that can be used throughout the TRE (in the past has been a requirement for many production use cases).
  2. Expose an endpoint publicly, get a lets encrypt cert, then make private - messy.
  3. Use self signed certs and configure VMs to trust these certs… also not great.
1reaction
jjgriff93commented, Mar 9, 2022

Have set up a meeting to discuss further after tomorrow’s stand-up - @tamirkamara have invited you if you’re able to attend as your input would be valued. If not feel free to post your thoughts on this ticket. Summary of the planned meeting discussion:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker proxy error - Nexus Repository Manager
I would like to know about the Nexus docker proxy warehouse. When the configured proxy URL address is unreachable, and the existing image...
Read more >
Using Nexus OSS as a proxy/cache for Docker images
Log on to your Nexus instance with administrative rights, and navigate to the Admin pages. Click on Repository -> Repositories, and click on...
Read more >
Nexus OSS 3.0.0 M7 - Problems with Docker Registry (proxy ...
I am struggling to set up a local docker registry that proxies DockerHub. Docker Versions. docker --version. Docker version 1.10.2, build c3959b1.
Read more >
In Sonatype Nexus Docker proxy, how do I debug "Bad ...
I updated the question to note specifically that I am attempting with httpsProxy . When that is enabled, everything breaks. So am I ......
Read more >
Set up a Private Docker Repository and Docker Hub Proxy ...
Overcome Docker Hub pull limits and privately store your own docker images by running your own Nexus server. Find out how to run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found