So it seems the docker registry itself rejects my connection:
bernat@uvm ~ $ curl https://index.docker.io <html> <head> <title>502 Bad Gateway</title> </head> <body>Certificate Verification Error for index.docker.io: self signed certificate in certificate chain (errno: 19, depth: 2)</body> </html>%
Any ideas if and how I can bypass this warning? I’m using Ubuntu 16.04 in a VM, with systemd. The reason for having the self signed certificate is for a dynamic proxy selection (different for internal and external). Connecting to an internal private register works though. I’ve installed the self signed certificate inside the system as trusted.