728x90

VM우분투에 도커 설치가 안되어서. 알아보니 인증서 문제가 아니라 네트워크가 잘못 된 것이였다. 방화벽 차단으로 프로시우회하지 못해 생긴일 
.profile 에 아래 처럼 프록시 서버를 확인하여 추가하고 재실행하면 됩니다. (또는 Source .profile 해도된다.)
export http_proxy="http://www.proxyserver.co.kr:8080" 

 

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------

 

$curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html


curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
gpg: no valid OpenPGP data found.

 

한 시간 헤맨 결과 방법은 인증서 다운받아 변환하고 설치한다.
1) 다운받기 
문제의 인증서는 https://download.docker.com/ 인데 브라우저로 열고 주소창 앞 설정표에 나타난 인증서에서 아래 내보내기로 cert를 받는다 (PEM방식임!!)

 

다운 파일을 확인하고 sftp로 연결할 폴더로 옮긴다. (맥은 Downloads로 오나 sftp 설정이 루트폴더 ( /home/ID )로 ..)

sftp 로 접속한 후 put으로 로컬파일을 서버로 밀어넣는다

crt파일로 변환한다.  ( openssl x509 -in _.docker.com.cer -inform pem -out docker.crt )
인증서를 등록한다. (
curl -v -cacert docker.crt -H "X-Requested-With: XMLHttpRequest" "https://download.docker.com")

참조  : https://frankler.tistory.com/43 ,  

728x90
Posted by 댕기사랑
,