microsoft / mssql-docker

Official Microsoft repository for SQL Server in Docker resources
MIT License
1.74k stars 759 forks source link

pyodbc Build failure #384

Open Chris55 opened 6 years ago

Chris55 commented 6 years ago

Hi,

I'm trying to build the oss-drivers/pyodbc/ image, but it stops on step 3/17:

`Step 3/17 : RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - ---> Running in 0f77b9e06183 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. gpg: no valid OpenPGP data found. The command '/bin/sh -c curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -' returned a non-zero code: 2`

Any clue? Thanks

Pirlo-Zhang commented 6 years ago

@Chris55

I can not reproduce this issue while building the docker file you used on my environment.

Docker version: 18.09.0-ce-beta1, Windows 10 Enterprise.

A quick research on this issue, please refer to:

#275

Check what happens.

Chris55 commented 6 years ago

I'm runnign Version 18.06.1-ce-win73 (19507), on Windows 10

It's working fine from home, but not behind my corporate proxy. What I don't understand is that previous steps are working (download) this means for me that my proxy settings are correct.

@Pirlo-Zhang looks like the link is for mac, I'm on Windows