SSL: CERTIFICATE_VERIFY_FAILED error in a docker container
I'm running into the following error message when I do easy_install pip:
root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
This is run in a docker container that runs on ubuntu:latest. I'm leaning towards the fact that it can't do openssl stuff (https link), but I'm not completely certain. If anyone has a solution or any troubleshooting methods, I'd love to find out.
Thanks.
python ssl docker pip easy-install
add a comment |
I'm running into the following error message when I do easy_install pip:
root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
This is run in a docker container that runs on ubuntu:latest. I'm leaning towards the fact that it can't do openssl stuff (https link), but I'm not completely certain. If anyone has a solution or any troubleshooting methods, I'd love to find out.
Thanks.
python ssl docker pip easy-install
well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…
– Frank Thomas
Jul 14 '16 at 22:01
add a comment |
I'm running into the following error message when I do easy_install pip:
root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
This is run in a docker container that runs on ubuntu:latest. I'm leaning towards the fact that it can't do openssl stuff (https link), but I'm not completely certain. If anyone has a solution or any troubleshooting methods, I'd love to find out.
Thanks.
python ssl docker pip easy-install
I'm running into the following error message when I do easy_install pip:
root@ff45b7b74944:/# easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading [--https link here, like above--]
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
This is run in a docker container that runs on ubuntu:latest. I'm leaning towards the fact that it can't do openssl stuff (https link), but I'm not completely certain. If anyone has a solution or any troubleshooting methods, I'd love to find out.
Thanks.
python ssl docker pip easy-install
python ssl docker pip easy-install
asked Jul 14 '16 at 21:57
cidcid
1613
1613
well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…
– Frank Thomas
Jul 14 '16 at 22:01
add a comment |
well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…
– Frank Thomas
Jul 14 '16 at 22:01
well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…
– Frank Thomas
Jul 14 '16 at 22:01
well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…
– Frank Thomas
Jul 14 '16 at 22:01
add a comment |
3 Answers
3
active
oldest
votes
adding RUN apt-get install ca-certificates
to my Dockerfile worked for me.
add a comment |
Solved:
Added the following to the Dockerfile:
RUN mkdir /etc/pki
RUN mkdir /etc/pki/tls
RUN mkdir /etc/pki/tls/certs
RUN apt-get install wget
RUN wget http://curl.haxx.se/ca/cacert.pem
RUN mv cacert.pem ca-bundle.crt
RUN mv ca-bundle.crt /etc/pki/tls/certs
add a comment |
Fresh installation of below packages solved my problem
apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1101004%2fssl-certificate-verify-failed-error-in-a-docker-container%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
adding RUN apt-get install ca-certificates
to my Dockerfile worked for me.
add a comment |
adding RUN apt-get install ca-certificates
to my Dockerfile worked for me.
add a comment |
adding RUN apt-get install ca-certificates
to my Dockerfile worked for me.
adding RUN apt-get install ca-certificates
to my Dockerfile worked for me.
answered Mar 5 '17 at 5:58
MattMatt
2181210
2181210
add a comment |
add a comment |
Solved:
Added the following to the Dockerfile:
RUN mkdir /etc/pki
RUN mkdir /etc/pki/tls
RUN mkdir /etc/pki/tls/certs
RUN apt-get install wget
RUN wget http://curl.haxx.se/ca/cacert.pem
RUN mv cacert.pem ca-bundle.crt
RUN mv ca-bundle.crt /etc/pki/tls/certs
add a comment |
Solved:
Added the following to the Dockerfile:
RUN mkdir /etc/pki
RUN mkdir /etc/pki/tls
RUN mkdir /etc/pki/tls/certs
RUN apt-get install wget
RUN wget http://curl.haxx.se/ca/cacert.pem
RUN mv cacert.pem ca-bundle.crt
RUN mv ca-bundle.crt /etc/pki/tls/certs
add a comment |
Solved:
Added the following to the Dockerfile:
RUN mkdir /etc/pki
RUN mkdir /etc/pki/tls
RUN mkdir /etc/pki/tls/certs
RUN apt-get install wget
RUN wget http://curl.haxx.se/ca/cacert.pem
RUN mv cacert.pem ca-bundle.crt
RUN mv ca-bundle.crt /etc/pki/tls/certs
Solved:
Added the following to the Dockerfile:
RUN mkdir /etc/pki
RUN mkdir /etc/pki/tls
RUN mkdir /etc/pki/tls/certs
RUN apt-get install wget
RUN wget http://curl.haxx.se/ca/cacert.pem
RUN mv cacert.pem ca-bundle.crt
RUN mv ca-bundle.crt /etc/pki/tls/certs
answered Jul 14 '16 at 22:57
cidcid
1613
1613
add a comment |
add a comment |
Fresh installation of below packages solved my problem
apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg
add a comment |
Fresh installation of below packages solved my problem
apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg
add a comment |
Fresh installation of below packages solved my problem
apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg
Fresh installation of below packages solved my problem
apt-get -yqq install build-essential libssl-dev libffi-dev python3-pip python3-dev gnupg
answered Jan 4 at 6:18
ShamsShams
1011
1011
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1101004%2fssl-certificate-verify-failed-error-in-a-docker-container%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
well, unfourtunately that error indicates a wide range of potential errors: websense.com/content/support/library/web/v762/wcg_ssl_cve/… See here for some solutions to problems with this error and PIP: stackoverflow.com/questions/32772895/…
– Frank Thomas
Jul 14 '16 at 22:01